add 2fa bypass
This commit is contained in:
parent
8c5f78c50f
commit
9762a935cb
3 changed files with 20 additions and 4 deletions
|
|
@ -83,6 +83,11 @@ const LoginState = ({ dispatch, strategy }) => {
|
|||
|
||||
if (!loginResponse.login) return
|
||||
|
||||
// Handle SKIP2FA case - directly get user data and navigate
|
||||
if (loginResponse.login === 'SKIP2FA') {
|
||||
return getUserData()
|
||||
}
|
||||
|
||||
return dispatch({
|
||||
type: loginResponse.login,
|
||||
payload: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue