Merge pull request #216 from stianst/master

KEYCLOAK-293 Fix generate new keys
This commit is contained in:
Stian Thorgersen 2014-02-17 15:55:01 +00:00
commit cbb6ec8b2c

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;