Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Added special message for "locked" users when they fail signin #1560

Closed
wants to merge 1 commit into from

Conversation

naz
Copy link
Contributor

@naz naz commented May 5, 2020

refs TryGhost/Ghost#11790

  • After user fails to signin due to "locked" being locked a new view with automatic email message and more instructions will be shown to make the password reset process easier.

refs TryGhost/Ghost#11790

- After user fails to signin due to "locked" being locked a new view with automatic email message and more instructions will be shown to make the password reset process easier.
@@ -55,6 +57,10 @@ export default Controller.extend(ValidationEngine, {

this.set('flowErrors', (mainError.context.string || mainError.message.string));

if (mainError.message.string.match(/your password must be reset/i)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be switching on the PasswordResetRequiredError that should be available on mainError.type if possible - messaging can change so it's brittle to inspect the message string.

naz added a commit that referenced this pull request May 5, 2020
@naz
Copy link
Contributor Author

naz commented May 5, 2020

Was superseeded by #1561

@naz naz closed this May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants