mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 23:58:08 +08:00
FIX: generate API key not working
This commit is contained in:
@ -11,6 +11,10 @@ Discourse.AdminApi = Discourse.Model.extend({
|
||||
Discourse.ajax(Discourse.getURL('/admin/api/generate_key'),{type: 'POST'}).then(function (result) {
|
||||
adminApi.set('key', result.key);
|
||||
});
|
||||
},
|
||||
|
||||
regenerateKey: function(){
|
||||
alert(Em.String.i18n('not_implemented'));
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user