fix(front/auth/login): show password field if previousFormData has password

This commit is contained in:
Alice Gaudon 2022-03-07 16:31:40 +01:00
parent 4cfcaac1cc
commit 8c083d562d

View File

@ -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;