KEYCLOAK-5281 (#4390)
This commit is contained in:
parent
672dd295f5
commit
31f82243fc
1 changed files with 4 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue