From ef9b61ebf7a9025747f715b98c4d8fcd98531b91 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 25 May 2022 01:00:00 +0300 Subject: Add autocomplete hints to login/signup forms --- src/main/assets/scripts.js | 4 ++-- src/main/resources/templates/layouts/login.html | 4 ++-- src/main/resources/templates/views/signup.html | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/assets/scripts.js b/src/main/assets/scripts.js index 08ff3c2d..d5ceb86e 100644 --- a/src/main/assets/scripts.js +++ b/src/main/assets/scripts.js @@ -418,8 +418,8 @@ function openDialogLogin() {

${i18n('loginDialog.registeredAlready')}

-
-
+
+
`; diff --git a/src/main/resources/templates/layouts/login.html b/src/main/resources/templates/layouts/login.html index 0f9d0a1b..e89f6790 100644 --- a/src/main/resources/templates/layouts/login.html +++ b/src/main/resources/templates/layouts/login.html @@ -267,9 +267,9 @@

{{ authErrorMessage | default('') }}

+ id="nickinput" autocomplete="username" /> + placeholder='{{ i18n("messages","label.password") }}' autocomplete="current-password" />
diff --git a/src/main/resources/templates/views/signup.html b/src/main/resources/templates/views/signup.html index d6eb921f..d3742734 100644 --- a/src/main/resources/templates/views/signup.html +++ b/src/main/resources/templates/views/signup.html @@ -21,7 +21,7 @@ {% else %}

Имя пользователя:

-

Пароль:

+

Пароль:

{% endif %} @@ -34,9 +34,9 @@ -

Имя пользователя:
(От 2-х до 16-и латинских символов +

Имя пользователя:
(От 2-х до 16-и латинских символов и/или цифр, дефис)

-

Пароль:
(от 6-и до 32-х символов)

+

Пароль:
(от 6-и до 32-х символов)

{% endif %} -- cgit v1.2.3