Open zizther opened 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:
@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.
@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?
@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
@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.
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: