0
Fork 0
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:
Daniel Lockyer 2022-04-25 17:37:36 +01:00
parent 1068070bd2
commit e1f05ed126

View file

@ -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) {