1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-23 07:57:53 +00:00

Improve form "for" and "autocomplete" attributes ()

GitOrigin-RevId: 2ce35d57526fc36b5a974d0f940ef6ba08806864
This commit is contained in:
Alf Eaton 2021-03-31 11:44:48 +01:00 committed by Copybot
parent d0d28524a2
commit 8227e68aca
2 changed files with 3 additions and 1 deletions
services/web/app/views/user

View file

@ -23,11 +23,12 @@ block content
form-messages(for="passwordResetForm" role="alert")
.form-group
label(for='email') #{translate("please_enter_email")}
input.form-control(
input.form-control#email(
type='email',
name='email',
placeholder='email@example.com',
required,
autocomplete="username",
ng-model="email",
autofocus
)

View file

@ -42,6 +42,7 @@ block content
name='password',
placeholder='new password',
required,
autocomplete="new-password",
ng-model="password",
autofocus,
complex-password