Merge pull request #1860 from stianst/KEYCLOAK-2118
KEYCLOAK-2118 OTP Policy form doesn't remember Number of Digits
This commit is contained in:
commit
274838aa64
4 files changed
+21
-19
No files matched your search
+2
@@ -327,6 +327,8 @@ module.controller('RealmLoginSettingsCtrl', function($scope, Current, Realm, rea
|
||||
});
|
||||
|
||||
module.controller('RealmOtpPolicyCtrl', function($scope, Current, Realm, realm, serverInfo, $http, $location, Dialog, Notifications) {
|
||||
$scope.optionsDigits = [ 6, 8 ];
|
||||
|
||||
genericRealmUpdate($scope, Current, Realm, realm, serverInfo, $http, $location, Dialog, Notifications, "/realms/" + realm.realm + "/authentication/otp-policy");
|
||||
});
|
||||
|
||||
|
||||
+1
-3
@@ -34,9 +34,7 @@
|
||||
<label class="col-md-2 control-label" for="digits">Number of Digits</label>
|
||||
<div class="col-md-2">
|
||||
<div>
|
||||
<select id="digits" ng-model="realm.otpPolicyDigits" class="form-control">
|
||||
<option value="6">6</option>
|
||||
<option value="8">8</option>
|
||||
<select id="digits" ng-model="realm.otpPolicyDigits" class="form-control" ng-options="item as item for item in optionsDigits">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user