-
Notifications
You must be signed in to change notification settings - Fork 155
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
SECURITY_CONFIRMABLE and Confirm Password #1043
Comments
I'm not sure it's broken in quite the way you are describing.. did you try: |
The error occurs in if not self.next.data:
self.next.data = request.args.get("next", "") Modifying the command to pass the |
Ahh yes - interesting - that actually shows that in addition to the extra confirm_password field - the other difference between the 2 register paths is the 'next' parameter. I assume that ultimately what you are looking for is a register form with CONFIRMABLE and requiring the user to type in the password twice?? For the CLI - I assume there is no reason to require 'password_confirm' (which is the unintended side-effect of the above form change). |
That's right.
Yes, it's already handled by the CLI (if no |
This deprecates RegisterForm and ConfirmRegisterForm and introduces RegisterFormV2. Currently, the old forms are used so no backwards compat issue. The new form can be used by setting SECURITY_REGISTER_V2 to True. Add the SECURITY_PASSWORD_CONFIRM_REQUIRED option that controls whether the RegisterFormV2 add that field. Deprecate RegisterForm, ConfirmRegisterForm and confirm_register_form options. closes #1043
This deprecates RegisterForm and ConfirmRegisterForm and introduces RegisterFormV2. Currently, the old forms are used so no backwards compat issue. The new form can be used by setting SECURITY_REGISTER_V2 to True. Add the SECURITY_PASSWORD_CONFIRM_REQUIRED option that controls whether the RegisterFormV2 add that field. Deprecate RegisterForm, ConfirmRegisterForm and confirm_register_form options. closes #1043
I suggest reconsidering #804. The solution proposed there (setting
confirm_register_form=flask_security.RegisterForm)
actually breaks the CLI, asflask users create
relies onconfirm_register_form
.flask_security.RegisterForm
meanwhile relies on the request context, so it's impossible to use it from CLI. And I believe it also won't pass validation anyway but I haven't checked itThe text was updated successfully, but these errors were encountered: