-
Notifications
You must be signed in to change notification settings - Fork 143
Feat: Force password reset #601
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
Feat: Force password reset #601
Conversation
|
Tests do not pass on Postgres. https://github.com/codeigniter4/shield/actions/runs/3933401851/jobs/6727065311 |
|
Rector check failed. Please run rector to fix them. |
b30dd31 to
7164e03
Compare
|
Test does not pass. |
eea7398 to
d58049b
Compare
|
The test passed now. Please check. |
|
Hi @kenjis, Still waiting for your review. |
…set() from UserIdentityModelTest
5a4d60f to
83baaa8
Compare
|
@sammyskills Thank you! |
Fixes #522
Implemented the force password reset functionality with the following highlights:
Resettabletrait that is used on theUserentity. This provides a couple of methods to check if a user requires a password reset or not, forcing a password reset and undoing the forced password reset. Thanks @lonnieezellUserIdentityModelwith methods to force a password reset for multiple users and globally, i.e., all the users.ForcePasswordResetFilterto check and redirect appropriately after a user is logged in.Registrarconfig.Authconfig to allow devs to specify aforce_resetredirect.quickstart.mdandinstall.mddocs.