bymayo / craft-porter

The missing toolbox for all things users (Delete Account, Password Policy, 2FA etc)
https://plugins.craftcms.com/porter
Other
1 stars 0 forks source link

Support for new user registration #7

Open zizther opened 1 month ago

zizther commented 1 month ago

Is there support for new user registration, which would work the same as the login functionality, and proceed to create a new user, generating a random password under their account if the email address does not match any user?

If this doesn't exist, it would be good if it followed the standard Craft approach to registrations, in addition to:

bymayo commented 1 month ago

@zizther I'm not 100% sure what you're asking here.

What are you trying to achieve with generating a random password under their account if the email address does not match any user

Most of the points you mentioned are already available with Craft's standard register front end form. Apart from:

zizther commented 1 month ago

@bymayo This would essentially register a user within Craft via Porter without the need for someone to enter a password, the user would get a link and be able to immediately create and login to their account on the frontend. This would essentially use the default Craft registrations approach, and work on top to take away the need for a user to enter a password to register.

The purpose of generating a password is because Craft requires one.

This would mimic how medium.com and poe.com work.

Assigning to a group is already handled within the default approach for user registration within Craft, and I guess it would be a feature feature in Craft to assign to multiple groups using the default approach.

bymayo commented 1 month ago

@zizther Ahh i don't know the flows of medium or poe, but i might have seen something similar. Is this so that the user doesn't have to enter a password? When they return to the site to login they just enter their email and are emailed a magic login link?

zizther commented 1 month ago

@bymayo That is correct, works for new users and returning users. Other like Anthropic have it, but you enter a code which is sent rather than a link like others mentioned previously.

For this to work a password would have to be generated and added to the user account.

The only scenario I can see being an issue is if the user wants to change their email address, they will need to use their password

bymayo commented 1 month ago

@zizther I could rework this so that a link could be sent to the users email to accept the change. I'll see what i can do.