diff --git a/ghost/admin/app/controllers/settings/staff/user.js b/ghost/admin/app/controllers/settings/staff/user.js index 8698e7cbfe..4b82e4ea01 100644 --- a/ghost/admin/app/controllers/settings/staff/user.js +++ b/ghost/admin/app/controllers/settings/staff/user.js @@ -326,8 +326,15 @@ export default class UserController extends Controller { @task *saveNewPasswordTask() { - yield this.user.saveNewPasswordTask.perform(); - document.querySelector('#password-reset')?.reset(); + try { + const user = yield this.user.saveNewPasswordTask.perform(); + document.querySelector('#password-reset')?.reset(); + return user; + } catch (error) { + if (error) { + this.notifications.showAPIError(error, {key: 'user.update'}); + } + } } @action