3

I’m setting up a site that has paid membership. For a visitor to create an account I’ll need to:

  1. Ask for email and password and create the new user.
  2. Take payment and upgrade the user’s status/user group if successful.

This could be part of the same form, or split into two steps. Either way, I’d like to know if it’s possible to auto log in the user once they’ve hit submit on their registration form.

15

Check out the autoLoginAfterAccountActivation config setting.

To enable it, set it to true in your craft/config/general.php file:

'autoLoginAfterAccountActivation' => true
  • Exactly what I was looking for, thanks Ben. – James Feb 13 '15 at 15:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.