Skip to content

Commit

Permalink
update per review
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato committed Jan 26, 2017
1 parent b0e8f93 commit 4de08f8
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions webapp/components/login/login_controller.jsx
Expand Up @@ -51,6 +51,10 @@ export default class LoginController extends React.Component {
showMfa: false,
loading: false
};

if (this.props.location.query.extra === Constants.SIGNIN_VERIFIED && this.props.location.query.email) {
this.state.loginId = this.props.location.query.email; // eslint-disable-line react/no-direct-mutation-state
}
}

componentDidMount() {
Expand All @@ -67,14 +71,6 @@ export default class LoginController extends React.Component {
AsyncClient.checkVersion();
}

componentWillMount() {
if (this.props.location.query.extra === Constants.SIGNIN_VERIFIED && this.props.location.query.email) {
this.setState({
loginId: this.props.location.query.email
});
}
}

preSubmit(e) {
e.preventDefault();

Expand Down

0 comments on commit 4de08f8

Please sign in to comment.