mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix MFA page showing up when not active on account switch (#5687)
This commit is contained in:
committed by
George Goldberg
parent
609a1148c7
commit
bfc8dafe5e
@@ -645,7 +645,7 @@ export function checkMfa(loginId, success, error) {
|
||||
loginId,
|
||||
(data) => {
|
||||
if (success) {
|
||||
success(data);
|
||||
success(data && data.mfa_required === 'true');
|
||||
}
|
||||
},
|
||||
(err) => {
|
||||
|
||||
@@ -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, '');
|
||||
|
||||
Reference in New Issue
Block a user