Ghost/core/server/api/v2
Naz c84866dda7
Improved password reset and session invalidation for "locked" users (#11790)
- Fixed session invalidation for "locked" user
  - Currently Ghost API was returning 404 for users having status set to "locked". This lead the user to be stuck in Ghost-Admin with "Rousource Not Found" error message.
  - By returning 401 for non-"active" users it allows for the Ghost-Admin to redirect the user to "signin" screen where they would be instructed to reset their password

- Fixed error message returned by session API
  - Instead of returning generic 'access' denied message when error happens during `User.check` we want to return more specific error thrown inside of the method, e.g.: 'accountLocked' or 'accountSuspended'
  - Fixed messaging for 'accountLocked' i18n, which not corresponds to the
actual UI available to the end user

- Added automatic password reset email to locked users on sign-in
  - uses alternative email for required password reset so it's clear that this is a security related reset and not a user-requested reset

- Backported the auto sending of required password reset email to v2 sign-in route
  - used by 3rd party clients where the email is necessary for users to know why login is failing

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
2020-05-05 19:37:53 +01:00
..
utils Added custom json-string format to AJV validator 2020-04-17 11:56:20 +01:00
actions.js Added v2 actions endpoint 2019-02-06 21:36:09 +01:00
authentication.js Improved password reset and session invalidation for "locked" users (#11790) 2020-05-05 19:37:53 +01:00
authors-public.js Renamed authors ctrl to authors-public 2019-02-26 08:33:10 +01:00
config.js Added "useGravatar" to config endpoint in Admin API v2 2019-02-25 15:39:47 +01:00
db.js Changed backup service signature to be able to expand it 2020-02-10 12:41:39 +00:00
images.js Renamed uploads to images 2019-02-24 11:18:45 +07:00
index.js Merge branch 'master' into v3 2019-10-11 11:31:31 +01:00
integrations.js Returned Promise.reject instead of throwing error 2020-04-13 16:13:33 +01:00
invites.js Fixed 500 error when deleting items that don't exist 2020-04-13 16:13:33 +01:00
mail.js Updated links to docs (#10941) 2019-07-22 18:17:50 +08:00
notifications.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
oembed.js Adjusted oembed endpoints to fetch higher resolution thumbnails 2020-04-29 16:44:20 +01:00
pages-public.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
pages.js Returned Promise.reject instead of throwing error 2020-04-13 16:13:33 +01:00
posts-public.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
posts.js Returned Promise.reject instead of throwing error 2020-04-13 16:13:33 +01:00
preview.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
redirects.js Extracted frontend code from redirects API controllers (#10798) 2019-06-21 16:50:16 +02:00
roles.js Migrated roles controller to API v2 2018-10-10 16:48:22 +02:00
schedules.js 🏗 Migrated scheduler to work with v2 API (#11142) 2019-09-23 21:42:53 +05:30
session.js Improved password reset and session invalidation for "locked" users (#11790) 2020-05-05 19:37:53 +01:00
settings-public.js 🎨 Added url value to the Content API /settings/ endpoint (#10946) 2019-07-24 11:12:07 +01:00
settings.js Added permission restrictions to editing members flag (#11217) 2019-10-09 10:26:54 +02:00
site.js Migrated to use url-utils from Ghost-SDK (#10787) 2019-06-18 15:13:55 +02:00
slack.js Added slack controller to v2 API (#10086) 2018-11-06 23:20:43 +01:00
slugs.js Remove External Apps 2020-03-20 10:40:22 +00:00
tags-public.js Added plugin based author and public tag models in API v2 (#10284) 2019-01-03 20:30:35 +01:00
tags.js Fixed 500 error when deleting items that don't exist 2020-04-13 16:13:33 +01:00
themes.js 🐛 Fixed cache invalidation header on theme override 2019-07-17 18:41:25 +05:30
users.js Replaced use of Bluebird return method from knex code 2020-04-07 10:49:12 +01:00
webhooks.js Fixed 500 error when deleting items that don't exist 2020-04-13 16:13:33 +01:00