Merge pull request #2629 from mposolda/1.9.x

KEYCLOAK-2823 Password policy 'hashAlgorithm' value not correctly sho…
This commit is contained in:
Marek Posolda committed 2016-04-14 13:56:06 +02:00
commit 6ab94ce4e8
1 file changed
+1 -1
@@ -1281,7 +1281,7 @@ module.factory('PasswordPolicy', function() {
for (var i = 0; i < policyArray.length; i ++){
var policyToken = policyArray[i];
if(policyToken.indexOf('regexPattern') === 0) {
if(policyToken.indexOf('hashAlgorithm') === 0 || policyToken.indexOf('regexPattern') === 0) {
re = /(\w+)\((.*)\)/;
policyEntry = re.exec(policyToken);
if (null !== policyEntry) {