Before we start coding our templates, we want to make sure our Craft CMS site is configured properly for the user registration flow.
A few helpful notes for this video:
Craft Pro required — in order to allow public registrations of user, you have to be running a valid Craft Pro license. For this tutorial, we’ll start a trial of Craft Pro since we’re only running this locally. Be sure to purchase a valid license for any public site.
Create user group for registered users called “Members”
To allow public registrations, we have to enable “Allow public registrations” in the Users settings.
We also want to enforce email verficiation for all new users. This will ensure they have access to the email address they say they do.
We’ll set the default user group to the “Members” group we created earlier.
We’ll also enable using the user email as their user name username? We need to enable this using a setting in the general configuratin file.
Additionally, we want to automatically log the person in after they successfully activate their account, so we’ll add a couple of more settings: