KEYCLOAK-5281 (#4390)

This commit is contained in:
Stian Thorgersen 2017-08-17 08:47:25 +02:00 committed by GitHub
parent 672dd295f5
commit 31f82243fc

View file

@ -524,13 +524,11 @@ module.controller('RealmPasswordPolicyCtrl', function($scope, Realm, realm, $htt
}
var policyString = "";
for (var i = 0; i < policies.length; i++) {
policyString += policies[i].id;
if (policies[i].value && policies[i].value != policies[i].defaultValue) {
policyString += '(' + policies[i].value + ')';
policyString += policies[i].id + '(' + policies[i].value + ')';
if (i != policies.length - 1) {
policyString += ' and ';
}
policyString += " and ";
}
policyString = policyString.substring(0, policyString.length - 5);
return policyString;
}
@ -560,7 +558,7 @@ module.controller('RealmPasswordPolicyCtrl', function($scope, Realm, realm, $htt
$scope.save = function() {
$scope.realm.passwordPolicy = toString($scope.policy);
console.debug($scope.realm.passwordPolicy);
console.log($scope.realm.passwordPolicy);
Realm.update($scope.realm, function () {
$route.reload();