Ghost/ghost
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
..
adapter-cache-memory-ttl Update Test & linting packages 2023-07-11 15:26:07 +02:00
adapter-cache-redis Update Test & linting packages 2023-07-11 15:26:07 +02:00
adapter-manager Update Test & linting packages 2023-07-11 15:26:07 +02:00
admin 🐛 Fixed success state on change password button. (#17410) 2023-07-18 17:58:06 +02:00
announcement-bar-settings Update Test & linting packages 2023-07-11 15:26:07 +02:00
api-framework Update Test & linting packages 2023-07-11 15:26:07 +02:00
api-version-compatibility-service Update Test & linting packages 2023-07-11 15:26:07 +02:00
audience-feedback Update Test & linting packages 2023-07-11 15:26:07 +02:00
bootstrap-socket Update Test & linting packages 2023-07-11 15:26:07 +02:00
collections Added tag filter support to collections 2023-07-18 20:18:54 +08:00
constants Update Test & linting packages 2023-07-11 15:26:07 +02:00
core Added tag filter support to collections 2023-07-18 20:18:54 +08:00
custom-theme-settings-service Update Test & linting packages 2023-07-11 15:26:07 +02:00
data-generator Update Test & linting packages 2023-07-11 15:26:07 +02:00
domain-events Update Test & linting packages 2023-07-11 15:26:07 +02:00
dynamic-routing-events Update Test & linting packages 2023-07-11 15:26:07 +02:00
email-analytics-provider-mailgun Update Test & linting packages 2023-07-11 15:26:07 +02:00
email-analytics-service Update Test & linting packages 2023-07-11 15:26:07 +02:00
email-content-generator Update Test & linting packages 2023-07-11 15:26:07 +02:00
email-events Update Test & linting packages 2023-07-11 15:26:07 +02:00
email-service Update Test & linting packages 2023-07-11 15:26:07 +02:00
email-suppression-list Update Test & linting packages 2023-07-11 15:26:07 +02:00
event-aware-cache-wrapper Update Test & linting packages 2023-07-11 15:26:07 +02:00
express-dynamic-redirects Update Test & linting packages 2023-07-11 15:26:07 +02:00
external-media-inliner Update Test & linting packages 2023-07-11 15:26:07 +02:00
extract-api-key Updated to use assert/strict everywhere (#17047) 2023-06-21 09:56:59 +01:00
html-to-plaintext Update Test & linting packages 2023-07-11 15:26:07 +02:00
i18n Fixed typo in Brazilian Portuguese translations 2023-07-13 14:05:03 +02:00
importer-handler-content-files Update Test & linting packages 2023-07-11 15:26:07 +02:00
importer-revue Update Test & linting packages 2023-07-11 15:26:07 +02:00
in-memory-repository Improved monorepo tooling setup 2023-07-12 16:27:39 +02:00
job-manager Update Test & linting packages 2023-07-11 15:26:07 +02:00
link-redirects Update Test & linting packages 2023-07-11 15:26:07 +02:00
link-replacer Update Test & linting packages 2023-07-11 15:26:07 +02:00
link-tracking Update Test & linting packages 2023-07-11 15:26:07 +02:00
magic-link Update Test & linting packages 2023-07-11 15:26:07 +02:00
mail-events Improved monorepo tooling setup 2023-07-12 16:27:39 +02:00
mailgun-client Update Test & linting packages 2023-07-11 15:26:07 +02:00
member-attribution Update Test & linting packages 2023-07-11 15:26:07 +02:00
member-events Update Test & linting packages 2023-07-11 15:26:07 +02:00
members-api Added search by email for Stripe Customer ID during member import (#17326) 2023-07-13 13:20:54 +02:00
members-csv Update Test & linting packages 2023-07-11 15:26:07 +02:00
members-events-service Update Test & linting packages 2023-07-11 15:26:07 +02:00
members-importer Added search by email for Stripe Customer ID during member import (#17326) 2023-07-13 13:20:54 +02:00
members-ssr Update Test & linting packages 2023-07-11 15:26:07 +02:00
mentions-email-report Update Test & linting packages 2023-07-11 15:26:07 +02:00
milestones Update Test & linting packages 2023-07-11 15:26:07 +02:00
minifier Update Test & linting packages 2023-07-11 15:26:07 +02:00
model-to-domain-event-interceptor Added collection handling for post's tag attach events 2023-07-18 18:36:49 +08:00
mw-api-version-mismatch Update Test & linting packages 2023-07-11 15:26:07 +02:00
mw-cache-control Update Test & linting packages 2023-07-11 15:26:07 +02:00
mw-error-handler Update Test & linting packages 2023-07-11 15:26:07 +02:00
mw-session-from-token Update Test & linting packages 2023-07-11 15:26:07 +02:00
mw-update-user-last-seen Update Test & linting packages 2023-07-11 15:26:07 +02:00
mw-version-match Update Test & linting packages 2023-07-11 15:26:07 +02:00
mw-vhost Update Test & linting packages 2023-07-11 15:26:07 +02:00
oembed-service Update Test & linting packages 2023-07-11 15:26:07 +02:00
offers Update Test & linting packages 2023-07-11 15:26:07 +02:00
package-json Update Test & linting packages 2023-07-11 15:26:07 +02:00
payments Update Test & linting packages 2023-07-11 15:26:07 +02:00
post-revisions Improved monorepo tooling setup 2023-07-12 16:27:39 +02:00
posts-service Update Test & linting packages 2023-07-11 15:26:07 +02:00
referrers Update Test & linting packages 2023-07-11 15:26:07 +02:00
security Update Test & linting packages 2023-07-11 15:26:07 +02:00
session-service Update Test & linting packages 2023-07-11 15:26:07 +02:00
settings-path-manager Update Test & linting packages 2023-07-11 15:26:07 +02:00
slack-notifications Update Test & linting packages 2023-07-11 15:26:07 +02:00
staff-service Update Test & linting packages 2023-07-11 15:26:07 +02:00
stats-service Update Test & linting packages 2023-07-11 15:26:07 +02:00
stripe Added request throttling to stay under the Stripe Search API rate limits (#17393) 2023-07-18 09:41:42 +00:00
tiers Update Test & linting packages 2023-07-11 15:26:07 +02:00
update-check-service Update Test & linting packages 2023-07-11 15:26:07 +02:00
verification-trigger Update Test & linting packages 2023-07-11 15:26:07 +02:00
version-notifications-data-service Update Test & linting packages 2023-07-11 15:26:07 +02:00
webmentions Update Test & linting packages 2023-07-11 15:26:07 +02:00
tsconfig.json Enabled sourcemaps in tsconfig 2023-07-17 17:41:57 +02:00