-
Notifications
You must be signed in to change notification settings - Fork 69
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 #275
Fix user was added on sign-up even if password didn't match confirmation #275
Conversation
password = self.get_body_argument("signup_password", strip=False) | ||
confirmation = self.get_body_argument( | ||
"signup_password_confirmation", strip=False | ||
) | ||
confirmation_matches = password == confirmation | ||
user_is_admin = user_info["username"] in self.authenticator.admin_users |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
user_info
wasn't set before if re-captcha had failed (assume_user_is_human=False
), so this is fixed now as well.
username_already_taken = self.authenticator.user_exists( | ||
user_info["username"] | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is now always done which I think is perfectly fine in this case.
Rebased version of #271 where I failed to push a commit with fixes needed as seen by @manics.
Thank you @paolocarinci for spotting this and initializing the work to fix it!!