Fix login success detection when response omits success flag (#429)
This commit is contained in:
parent
5a40f8e6f6
commit
0701b5a3d4
@ -178,7 +178,9 @@ export function LoginForm() {
|
||||
return
|
||||
}
|
||||
|
||||
if (!payload.success || !response.ok) {
|
||||
const isSuccessful = response.ok && (payload.success ?? true)
|
||||
|
||||
if (!isSuccessful) {
|
||||
const messageKey = payload.error ?? 'generic_error'
|
||||
if (
|
||||
messageKey === 'mfa_code_required' ||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user