Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Use ttrssBaseUrl from localstorage as default URL on login form
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzikri Aziz committed Mar 28, 2017
1 parent 224c171 commit 0567cc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/LoginForm.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react';
import { toString } from 'lodash';
import { requestLogin } from 'actions/session';
import Icon from 'components/Icon';
import styles from 'css/components/form';
Expand All @@ -16,7 +17,7 @@ export default class LoginForm extends React.Component {
this.state = {
user: '',
password: '',
url: window.location.origin,
url: toString( localStorage.getItem( 'ttrssBaseUrl' ) ) || window.location.origin,
};

this.handleChange = this.handleChange.bind( this );
Expand Down

0 comments on commit 0567cc8

Please sign in to comment.