Skip to content
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

Support for new user registration #7

Open
zizther opened this issue Jul 20, 2024 · 5 comments
Open

Support for new user registration #7

zizther opened this issue Jul 20, 2024 · 5 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@zizther
Copy link

zizther commented Jul 20, 2024

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:

  • Setting the redirect after login, for new registered users which would be in addition to users who do have an account already.
  • Assign to Craft default member group or select one or multiple groups.
  • Be able to submit user field data before signing up (e.g. username, country, etc)
  • Nice to have: Upon user signup token link - have the option to not complete registration until they completed some fields upon. Only upon submission will it sign the user in.
@bymayo
Copy link
Owner

bymayo commented Jul 23, 2024

@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:

  • Assign to Craft default member group or select one or multiple groups.
    This is on the roadmap, to have a field that lets them choose a group, or for admins to select multiple groups

@bymayo bymayo added enhancement New feature or request question Further information is requested labels Jul 23, 2024
@zizther
Copy link
Author

zizther commented Jul 23, 2024

@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
Copy link
Owner

bymayo commented Jul 23, 2024

@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
Copy link
Author

zizther commented Jul 23, 2024

@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
Copy link
Owner

bymayo commented Jul 24, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants