mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Renamed reset_all_passwords
Authentication API endpoint to /global_password_reset
refs https://github.com/TryGhost/Toolbox/issues/308 - our API has a pattern of using nouns and not verbs for the endpoint names, so this changes the endpoint for v5
This commit is contained in:
parent
1068070bd2
commit
e1f05ed126
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ export default ModalComponent.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
async _resetPasswords() {
|
async _resetPasswords() {
|
||||||
const res = await fetch('/ghost/api/admin/authentication/reset_all_passwords/', {
|
const res = await fetch('/ghost/api/admin/authentication/global_password_reset/', {
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
});
|
});
|
||||||
if (res.status < 200 || res.status >= 300) {
|
if (res.status < 200 || res.status >= 300) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue