Fix username validation

This commit is contained in:
@lukin 2021-12-09 17:20:00 +07:00
parent 8db0ead4a3
commit 5a07825f2a
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@
autofocus=true autofocus=true
invalid=["username"] invalid=["username"]
name="username" name="username"
type=realm.loginWithEmailAllowed?string("email", "text") type="text"
value=(auth?has_content && auth.showUsername())?then(auth.attemptedUsername, '') value=(auth?has_content && auth.showUsername())?then(auth.attemptedUsername, '')
> >
<@labelUsername.kw /> <@labelUsername.kw />

View file

@ -34,7 +34,7 @@
disabled=usernameEditDisabled?? disabled=usernameEditDisabled??
invalid=["username", "password"] invalid=["username", "password"]
name="username" name="username"
type=realm.loginWithEmailAllowed?string("email", "text") type="text"
value=(login.username)!'' value=(login.username)!''
> >
<@labelUsername.kw /> <@labelUsername.kw />