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
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
import {hasRoute, route} from "../../../common/Routing";
let registerUsingMagicLink = $locals.flash.previousFormData?.[0]?.['auth_method'] !== 'password';
let loginUsingMagicLink = true;
let loginUsingMagicLink = !$locals.flash.previousFormData?.[0]?.['password'];
let queryStr = '';
let previousUrl: string = $locals.previousUrl as string | undefined;