Fix MFA check to use the new mattermost-redux {data, error} response (#1067)

This commit is contained in:
enahum 2017-10-26 09:17:36 -03:00 committed by GitHub
parent 685a56d24c
commit ad33738474

View file

@ -174,7 +174,7 @@ class Login extends PureComponent {
if (this.props.config.EnableMultifactorAuthentication === 'true') {
this.props.actions.checkMfa(this.props.loginId).then((result) => {
if (result) {
if (result.data) {
this.goToMfa();
} else {
this.signIn();