Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password history feature #1655

Closed
mbarqawi opened this issue Dec 14, 2016 · 6 comments
Closed

Password history feature #1655

mbarqawi opened this issue Dec 14, 2016 · 6 comments
Labels

Comments

@mbarqawi
Copy link

Salam ,
I wonder if you have the Password history check policy in your roadmap ?
If not do you have any reconditions on how to impalement it ?
thanks

CC @mrashed

@hikalkan
Copy link
Member

Selam,

This is related to module-zero actually. To do that, it seems two change required:

  1. Override ChangePasswordAsync method of UserManager to save user's password to a table if base.ChangePasswordAsync returns success.

  2. Create your own PasswordValidator and set it to PasswordValidator property of UserManager in it's constructor. If you create your own PasswordValidator, you can derive from Microsoft.AspNet.Identity.PasswordValidator which already makes many checks. Override ValidateAsync method and add your own logic.

Have a nice day.

@abou-emish
Copy link
Contributor

@hikalkan you are very generous in you support :)

Thank you

@hikalkan
Copy link
Member

You're welcome :)

@laksh-parab
Copy link

laksh-parab commented Sep 18, 2018

Do we also have to override UserManager.ResetPasswordAsync to make sure new password follow the policy?

@ismcagdas
Copy link
Member

@laksh-parab it is a choice you have to make I guess. In some apps it might not be the desired usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants