aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/assets/scripts.js4
-rw-r--r--src/main/resources/templates/layouts/login.html4
-rw-r--r--src/main/resources/templates/views/signup.html6
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() {
<a href="/_apple" id="signapple"><img src="https://appleid.cdn-apple.com/appleid/button"></a>
<p>${i18n('loginDialog.registeredAlready')}</p>
<form action="/login" method="POST">
- <input class="signinput" type="text" name="username" placeholder="${i18n('loginDialog.username')}"/><br/>
- <input class="signinput" type="password" name="password" placeholder="${i18n('loginDialog.password')}"/><br/>
+ <input class="signinput" type="text" name="username" placeholder="${i18n('loginDialog.username')}" autocomplete="username" /><br/>
+ <input class="signinput" type="password" name="password" placeholder="${i18n('loginDialog.password')}" autocomplete="current-password" /><br/>
<input class="signsubmit Button" type="submit" value="OK"/>
</form>
</div>`;
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 @@
<form action="/login" method="POST">
<p class="err">{{ authErrorMessage | default('') }}</p>
<input class="txt" type="text" name="username" placeholder='{{ i18n("messages","label.username") }}'
- id="nickinput" />
+ id="nickinput" autocomplete="username" />
<input class="txt" type="password" name="password"
- placeholder='{{ i18n("messages","label.password") }}' />
+ placeholder='{{ i18n("messages","label.password") }}' autocomplete="current-password" />
<input class="submit" type="submit" value="OK" />
</form>
</div>
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 @@
<input type="submit" value="Связать с этим аккаунтом"/>
{% else %}
<p>Имя пользователя: <input type="text" name="username"/></p>
- <p>Пароль: <input type="password" name="password"/></p>
+ <p>Пароль: <input type="password" name="password" autocomplete="current-password" /></p>
<p><input type="submit" value=" OK "/></p>
{% endif %}
</form>
@@ -34,9 +34,9 @@
<input type="hidden" name="action" value="new"/>
<input type="hidden" name="type" value="{{ type }}"/>
<input type="hidden" name="hash" value="{{ hash }}"/>
- <p>Имя пользователя: <input type="text" name="username" id="username"/><br/><i>(От 2-х до 16-и латинских символов
+ <p>Имя пользователя: <input type="text" name="username" id="username" autocomplete="username" /><br/><i>(От 2-х до 16-и латинских символов
и/или цифр, дефис)</i></p>
- <p>Пароль: <input type="password" name="password"/><br/><i>(от 6-и до 32-х символов)</i></p>
+ <p>Пароль: <input type="password" name="password" autocomplete="new-password"/><br/><i>(от 6-и до 32-х символов)</i></p>
<p><input type="submit" value=" OK "/></p>
</form>
{% endif %}