mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
fixed regex for symbols on password validation
This commit is contained in:
parent
3166b12cea
commit
647c3cfd7c
@ -89,7 +89,7 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job
|
||||
ctrl.$setValidity('hasNumber', validity);
|
||||
}
|
||||
if ($AnsibleConfig.password_hasSymbol) {
|
||||
validity = (/[$-/:-?{-~!"^_`\[\]]/.test(ctrl.$modelValue));
|
||||
validity = (/[\\#@$-/:-?{-~!"^_`\[\]]/.test(ctrl.$modelValue));
|
||||
ctrl.$setValidity('hasSymbol', validity);
|
||||
}
|
||||
} else {
|
||||
|
||||
@ -1003,7 +1003,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
||||
}
|
||||
if ($AnsibleConfig.password_hasSymbol) {
|
||||
html += "<div class=\"error\" ng-show=\"" + this.form.name + '_form.' + fld +
|
||||
".$error.hasSymbol\">Your password must contain one of the following characters: -!$%^&*()_+|~=`{}\[\]:\";\'<>?,.\/.</div>\n";
|
||||
".$error.hasSymbol\">Your password must contain one of the following characters: `~!@#$%^&*()_-+=|}\]{\[;:\"\'?\/>.<,\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user