Skip to content

sent password reset email even for getpersonas migrated accounts (bug 998477)#67

Merged
magopian merged 1 commit intomozilla:masterfrom
magopian:998477-password-reset-email-not-sent
May 7, 2014
Merged

sent password reset email even for getpersonas migrated accounts (bug 998477)#67
magopian merged 1 commit intomozilla:masterfrom
magopian:998477-password-reset-email-not-sent

Conversation

@magopian
Copy link
Copy Markdown
Contributor

Fix bug 998477

At the moment, even if we can't reset a user's password (because her password
is empty), we still display a message stating that an email was sent to
reset it. This is now fixed.

Also, we have our own way of checking passwords, so the AbstractBaseUser.has_usable_password checks aren't loose enough for us (for example it checks the settings.PASSWORD_HASHERS which we don't necessarily use). An exemple is for passwords for migrated getpersonas accounts which are b64encoded. We thus monkeypatch this has_usable_password, waiting for PR #63 to be merged.

@washort please check the # TODO I added in this PR if yours (#63) is merged after this one.

@magopian magopian changed the title warn users if we can't reset their password warn users if we can't reset their password (bug 998477) May 5, 2014
@magopian magopian changed the title warn users if we can't reset their password (bug 998477) sent password reset email even for getpersonas migrated accounts (bug 998477) May 5, 2014
Comment thread apps/users/forms.py Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wonder if we wanna go this way, or just put the "user mode switch" as a dependency of this one?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need "is True" given that has_usable_pwd return a boolean?

@yohanboniface
Copy link
Copy Markdown
Contributor

r+

magopian added a commit that referenced this pull request May 7, 2014
…sent

sent password reset email even for getpersonas migrated accounts (bug 998477)
@magopian magopian merged commit ff96997 into mozilla:master May 7, 2014
@magopian magopian deleted the 998477-password-reset-email-not-sent branch May 7, 2014 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants