Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

adds relevant user to reset password form for validation purposes #835

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

fuhrysteve
Copy link
Contributor

I need a way to check password complexity, including relevant information about the user (such as their first and last name). Currently ResetPasswordForm has no mechanism for doing this, since current_user is AnonymousUser at this point.

This simply tacks on user from the token so that the ResetPasswordForm can fully implement complexity checks against the proposed user-to-change's data as extra dictionary items (example of the sort of checks I'd like to perform here: https://github.com/dwolfhub/zxcvbn-python#usage)

jasco pushed a commit to jasco/flask-security that referenced this pull request Oct 3, 2023
Co-authored-by: Armen Mkrtchyan <amkrtchyan@techdaisy.co>
Co-authored-by: Chris Wagner <jwag.wagner@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants