fix(front/auth/login): show password field if previousFormData has password
This commit is contained in:
parent
4cfcaac1cc
commit
8c083d562d
@ -7,7 +7,7 @@
|
|||||||
import {hasRoute, route} from "../../../common/Routing";
|
import {hasRoute, route} from "../../../common/Routing";
|
||||||
|
|
||||||
let registerUsingMagicLink = $locals.flash.previousFormData?.[0]?.['auth_method'] !== 'password';
|
let registerUsingMagicLink = $locals.flash.previousFormData?.[0]?.['auth_method'] !== 'password';
|
||||||
let loginUsingMagicLink = true;
|
let loginUsingMagicLink = !$locals.flash.previousFormData?.[0]?.['password'];
|
||||||
|
|
||||||
let queryStr = '';
|
let queryStr = '';
|
||||||
let previousUrl: string = $locals.previousUrl as string | undefined;
|
let previousUrl: string = $locals.previousUrl as string | undefined;
|
||||||
|
Loading…
Reference in New Issue
Block a user