KEYCLOAK-293 Fix generate new keys

This commit is contained in:
Stian Thorgersen 2014-02-17 15:54:24 +00:00
parent 325919e24a
commit 36515509c6

View file

@ -599,7 +599,7 @@ module.controller('RealmKeysDetailCtrl', function($scope, Realm, realm, $http, $
$scope.generate = function() {
Dialog.confirmGenerateKeys($scope.realm.realm, 'realm', function() {
Realm.update({ id: realm.realm, publicKey : 'GENERATE' }, function () {
Realm.update({ realm: realm.realm, publicKey : 'GENERATE' }, function () {
Notifications.success('New keys generated for realm.');
Realm.get({ id : realm.realm }, function(updated) {
$scope.realm = updated;