autofocus password field on password reset page, and remove static password length message
This commit is contained in:
parent
84af84dc52
commit
e82240fbd9
|
@ -18,12 +18,11 @@
|
|||
<h2>{{i18n 'user.change_password.choose'}}</h2>
|
||||
|
||||
<div class="input">
|
||||
{{password-field value=accountPassword type="password" id="new-account-password" capsLockOn=capsLockOn}}
|
||||
{{password-field value=accountPassword type="password" id="new-account-password" capsLockOn=capsLockOn autofocus="autofocus"}}
|
||||
{{input-tip validation=passwordValidation}}
|
||||
</div>
|
||||
|
||||
<div class="instructions">
|
||||
<label>{{passwordInstructions}}</label>
|
||||
<div class="caps-lock-warning {{unless capsLockOn 'invisible'}}"><i class="fa fa-exclamation-triangle"></i> {{i18n 'login.caps_lock_warning'}}</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ test("Password Reset Page", () => {
|
|||
visit("/users/password-reset/myvalidtoken");
|
||||
andThen(() => {
|
||||
ok(exists(".password-reset input"), "shows the input");
|
||||
ok(find('.password-reset .instructions').html().indexOf('8 char') !== -1, "shows correct min length");
|
||||
});
|
||||
|
||||
fillIn('.password-reset input', 'perf3ctly5ecur3');
|
||||
|
|
Loading…
Reference in New Issue