autofocus password field on password reset page, and remove static password length message

This commit is contained in:
Neil Lalonde 2017-02-06 12:45:47 -05:00
parent 84af84dc52
commit e82240fbd9
2 changed files with 1 additions and 3 deletions

View File

@ -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"}}
&nbsp;{{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>

View File

@ -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');