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.

James
  • 1,138
  • 8
  • 20

1 Answers1

16

Check out the autoLoginAfterAccountActivation config setting.

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

'autoLoginAfterAccountActivation' => true
Ben Parizek
  • 13,448
  • 1
  • 33
  • 98