From dce13679e794a24e0f9522f7083fd58e8dabbeeb Mon Sep 17 00:00:00 2001 From: "@lukin" Date: Thu, 9 Dec 2021 17:20:00 +0700 Subject: [PATCH] fix: update username validation --- theme/keywind/login/login-reset-password.ftl | 2 +- theme/keywind/login/login.ftl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/theme/keywind/login/login-reset-password.ftl b/theme/keywind/login/login-reset-password.ftl index 6c42a97..5aa0a1e 100644 --- a/theme/keywind/login/login-reset-password.ftl +++ b/theme/keywind/login/login-reset-password.ftl @@ -20,7 +20,7 @@ autofocus=true invalid=["username"] name="username" - type=realm.loginWithEmailAllowed?string("email", "text") + type="text" value=(auth?has_content && auth.showUsername())?then(auth.attemptedUsername, '') > <@labelUsername.kw /> diff --git a/theme/keywind/login/login.ftl b/theme/keywind/login/login.ftl index 9b02754..1ff0664 100644 --- a/theme/keywind/login/login.ftl +++ b/theme/keywind/login/login.ftl @@ -34,7 +34,7 @@ disabled=usernameEditDisabled?? invalid=["username", "password"] name="username" - type=realm.loginWithEmailAllowed?string("email", "text") + type="text" value=(login.username)!'' > <@labelUsername.kw />