Fix copy and paste error

This commit is contained in:
Johannes Zellner
2016-01-20 14:49:45 +01:00
parent 74860f2d16
commit 909dd0725a

View File

@@ -96,7 +96,7 @@ function validateUsername(username) {
function validatePassword(password) {
assert.strictEqual(typeof password, 'string');
if(!password.value.match(gPasswordTestRegExp)) return new UserError(UserError.BAD_PASSWORD, 'Password must be 8-20 character with at least one uppercase, one numeric and one special character');
if(!password.match(gPasswordTestRegExp)) return new UserError(UserError.BAD_PASSWORD, 'Password must be 8-20 character with at least one uppercase, one numeric and one special character');
return null;
}