Hey guys. I’ve never done email verification on any of my other projects, but i’m in need of doing it now. The problem is though, i don’t know how to approach it.
What i want is just the standard thing, i.e. a guest submits the form to create a user, but in order to use the user he must activate it through a link send with email.
You can use the afterSave() method on the User model (if that is the case) to send the activation email with an activation key. The url for to activate/validate the email, should be a absolute url (you can use createAbsoluteUrl()). After all this steps, you only need to get url parameters, and compare with the activation key that you saved previous on the database related to the user.