Skip to content
Snippets Groups Projects
Commit 1e3a6b8e authored by runemaster's avatar runemaster
Browse files

Added minimum password length check. Set to 4 characters.

parent 8029c4c8
No related branches found
No related tags found
No related merge requests found
......@@ -35,10 +35,14 @@ if(newpw1 == '') {
template.resultmsg="New password cannot be blank! Please enter a new password.";
}
else
if(newpw1.length < 4) {
template.resultmsg="New Password must be a minimum of 4 characters. Please Re-Enter."
}
else
if(newpw1 != newpw2) {
template.resultmsg="New Passwords do not match. Please Re-Enter."
}
else {
else {
template.resultmsg="Password Changed Successfully."
user.security.password = newpw1;
user.security.password_date = today;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment