summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/actions/user_actions.jsx2
-rw-r--r--webapp/components/login/login_controller.jsx4
2 files changed, 3 insertions, 3 deletions
diff --git a/webapp/actions/user_actions.jsx b/webapp/actions/user_actions.jsx
index 0f6ac3e9f..b5f14577f 100644
--- a/webapp/actions/user_actions.jsx
+++ b/webapp/actions/user_actions.jsx
@@ -645,7 +645,7 @@ export function checkMfa(loginId, success, error) {
loginId,
(data) => {
if (success) {
- success(data);
+ success(data && data.mfa_required === 'true');
}
},
(err) => {
diff --git a/webapp/components/login/login_controller.jsx b/webapp/components/login/login_controller.jsx
index 9bb8a4324..38c594cf7 100644
--- a/webapp/components/login/login_controller.jsx
+++ b/webapp/components/login/login_controller.jsx
@@ -131,8 +131,8 @@ export default class LoginController extends React.Component {
checkMfa(
loginId,
- (data) => {
- if (data && data.mfa_required === 'true') {
+ (requiresMfa) => {
+ if (requiresMfa) {
this.setState({showMfa: true});
} else {
this.submit(loginId, password, '');