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

Fixing the different possibilities for the register form. #637

Closed
wants to merge 1 commit into from

Conversation

sdiepend
Copy link
Contributor

Fix for issues
#601
#580

Adds a new flag: SECURITY_RETYPABLE which allows you to specify
if users have to confirm(retype) their password or not when registering.

Now you have four different combinations of possible register forms.

CONFIRMABLE: False, RETYPABLE: False => RegisterForm
CONFIRMABLE: True, RETYPABLE: False => ConfirmRegisterForm
CONFIRMABLE: False, RETYPABLE: True => RetypeRegisterForm
CONFIRMABLE: True, RETYPABLE: True => ConfirmRetypeRegisterForm

Only when using the API it will default to ConfirmRegisterForm as before.

@sdiepend sdiepend force-pushed the develop branch 4 times, most recently from 07bb104 to 107fe36 Compare May 14, 2017 16:16
Fix for issues
pallets-eco#601
pallets-eco#580

Adds a new flag: SECURITY_RETYPABLE which allows you to specify
if users have to confirm(retype) their password or not when registering.

Now you have four different combinations of possible register forms.

CONFIRMABLE: False, RETYPABLE: False => RegisterForm
CONFIRMABLE: True, RETYPABLE: False  => ConfirmRegisterForm
CONFIRMABLE: False, RETYPABLE: True  => RetypeRegisterForm
CONFIRMABLE: True, RETYPABLE: True   => ConfirmRetypeRegisterForm

Only when using the API it will default to ConfirmRegisterForm as before.
@jirikuncar
Copy link
Collaborator

This functionality can be done already via configurable forms (see #601 (comment)). Also I see the different forms for regular and API confusing.

I would propose that we can split the forms so one can easily choose one with password confirmation or without it. WDYT?

@sdiepend
Copy link
Contributor Author

Yes, split them, but we should add a flag for this. That's the SECURITY_RETYPABLE I had chosen. Because SECURITY_CONFIRMABLE is used for account/email confirmation.

We probably don't need a different form for the account/email confirmation as has no influence on the fields of the form itself.

@jirikuncar
Copy link
Collaborator

The functionality added by SECURITY_RETYPABLE flag can be configured only via SECURITY_ REGISTER_FORM and SECURITY_CONFIRM_REGISTER_FORM, hence I am not a big fan of adding it.

@jirikuncar
Copy link
Collaborator

@sdiepend feel free to re-open the PR if you are not happy with the proposed solution.

@jirikuncar jirikuncar closed this Oct 9, 2017
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

3 participants