mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
fixed regex for symbols on password validation
This commit is contained in:
@@ -89,7 +89,7 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job
|
|||||||
ctrl.$setValidity('hasNumber', validity);
|
ctrl.$setValidity('hasNumber', validity);
|
||||||
}
|
}
|
||||||
if ($AnsibleConfig.password_hasSymbol) {
|
if ($AnsibleConfig.password_hasSymbol) {
|
||||||
validity = (/[$-/:-?{-~!"^_`\[\]]/.test(ctrl.$modelValue));
|
validity = (/[\\#@$-/:-?{-~!"^_`\[\]]/.test(ctrl.$modelValue));
|
||||||
ctrl.$setValidity('hasSymbol', validity);
|
ctrl.$setValidity('hasSymbol', validity);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1003,7 +1003,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
|||||||
}
|
}
|
||||||
if ($AnsibleConfig.password_hasSymbol) {
|
if ($AnsibleConfig.password_hasSymbol) {
|
||||||
html += "<div class=\"error\" ng-show=\"" + this.form.name + '_form.' + fld +
|
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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user