This commit is contained in:
garronej 2023-08-14 21:57:19 +02:00
parent ce43dca23b
commit 2221e30c0a

View File

@ -71,8 +71,8 @@ export default function Login(props: PageProps<Extract<KcContext, { pageId: "log
const label = !realm.loginWithEmailAllowed
? "username"
: realm.registrationEmailAsUsername
? "email"
: "usernameOrEmail";
? "email"
: "usernameOrEmail";
const autoCompleteHelper: typeof label = label === "usernameOrEmail" ? "username" : label;