Add focus on email or new password fields. Also updated validation message for password length when creating a new password NIHVIVO-227
This commit is contained in:
parent
4b2da00daf
commit
bb08bef23f
4 changed files with 11 additions and 10 deletions
|
@ -44,7 +44,7 @@ public class LoginProcessBean {
|
|||
MISMATCH_PASSWORD("The passwords entered do not match.", MLevel.ERROR),
|
||||
|
||||
PASSWORD_LENGTH(
|
||||
"Please enter a password between {0} and {1} characters long",
|
||||
"Please enter a password between {0} and {1} characters in length.",
|
||||
MLevel.ERROR),
|
||||
|
||||
USING_OLD_PASSWORD("Please choose a different password from the "
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
$("#formLogin").removeClass("hidden");
|
||||
// login form is hidden by default; use JavaScript to reveal
|
||||
$("#formLogin").removeClass("hidden");
|
||||
|
||||
// focus on email or newpassword field
|
||||
$('.focus').focus();
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
|
|
@ -16,10 +16,10 @@ ${stylesheets.addFromTheme("/login.css")}
|
|||
|
||||
<form action="${formAction}" method="post">
|
||||
<label for="newPassword">New Password</label>
|
||||
<input type="password" name="newPassword" />
|
||||
<p class="passwordNote">Please enter a password with more than 5 characters</p>
|
||||
<input id="newPassword" class="focus" type="password" name="newPassword" />
|
||||
<p class="passwordNote">Minimum of 6 characters in length.</p>
|
||||
<label for="confirmPassword">Confirm Password</label>
|
||||
<input type="password" name="confirmPassword" />
|
||||
<input id="confirmPassword" type="password" name="confirmPassword" />
|
||||
<input name="passwordChangeForm" type="submit" class="submit" value="Save Changes"/>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -30,9 +30,9 @@ ${stylesheets.addFromTheme("/login.css")}
|
|||
|
||||
<form action="${formAction}" method="post">
|
||||
<label for="loginName">Email</label>
|
||||
<input name="loginName" type="text" value="${loginName}" />
|
||||
<input id="loginName" class="focus" name="loginName" type="text" value="${loginName}" />
|
||||
<label for="loginPassword">Password</label>
|
||||
<input type="password" name="loginPassword" />
|
||||
<input id="loginPassword" type="password" name="loginPassword" />
|
||||
<input name="loginForm" type="submit" class="submit" value="Log in"/>
|
||||
</form>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue