Ghost/ghost/admin/app/controllers/settings
Ronald Langeveld 6dc000e247
🐛 Fixed success state on change password button. (#17410)
closes https://github.com/TryGhost/Product/issues/3604

- The change password button in the user settings wasn't updating correctly.
- the saveNewPasswordTask() wasn't returning anything, causing `
this.get('task.last.value')` to return undefined in the `isSuccess`
method.
- This fix ensures that there is a value attached to the
`task.last.value` so that the condition for a successful save checks
out.

---

<!-- Leave the line below if you'd like GitHub Copilot to generate a
summary from your commit -->
<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at a6a76eb</samp>

Improved error handling and feedback for changing user passwords in the
settings UI. Modified `saveNewPasswordTask` function in
`ghost/admin/app/controllers/settings/staff/user.js` to catch and
display errors and return user object.
2023-07-18 17:58:06 +02:00
..
announcement-bar Fixed announcement bar preview (#16715) 2023-04-27 16:40:11 +04:00
design Added Taste and Episode themes (#15991) 2022-12-13 23:03:21 +08:00
integration/webhooks Refactored integration webhook modals 2022-09-08 09:18:56 +01:00
integrations Added Pintura integration page in Admin (#16686) 2023-04-20 21:20:07 +05:30
labs Replaced "Open Importer" button with one that works 2022-11-17 14:40:24 +00:00
staff 🐛 Fixed success state on change password button. (#17410) 2023-07-18 17:58:06 +02:00
analytics.js Wired new analytics settings for tracking email and sources 2022-10-27 17:29:33 +05:30
code-injection.js Switched code injection unsaved changes modal to new modal pattern 2022-09-09 17:44:11 +01:00
design.js Fixed save button on design settings screen 2021-10-12 15:19:27 +01:00
general.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
history.js Renamed Audit Log to History 2022-09-06 11:49:29 +01:00
integration.js Switched API key regeneration modal to new modal pattern 2022-11-14 09:55:34 +00:00
integrations.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
labs.js Updated inlined feedback form (#16794) 2023-05-16 16:16:57 +04:00
membership.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
navigation.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
newsletters.js Renamed members-email-labs to newsletters and removed unused files 2022-05-05 13:37:53 +02:00
tier.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
tiers.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00