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

Fix user was added on sign-up even if password didn't match confirmation #271

Closed
wants to merge 3 commits into from

Conversation

paolocarinci
Copy link
Contributor

In the current version of nativeauthenticator, there is a bug that adds a new user who is signing-up to the database even if the chosen password does not match the confirmation password.
This commit fixes it.

"signup_password_confirmation", strip=False
)
confirmation_matches = password == confirmation
user_is_admin = user_info["username"] in self.authenticator.admin_users
Copy link
Member

Choose a reason for hiding this comment

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

user_info hasn't been initialised yet

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