Workflow on user creation
Hi,
we are developing a application over sitefinity and we have a doubt.
We are developing the user registration, and we don't see if exists a kind of workflow in this registration. If we use the users api, on create it, the user is created with immediate access. We need to send a mail, before to enable the user access, for verify the mail. Until the mail is not validated, the user cannot enter.
We are looking for the way to do it... Is it necessary develop the full workflow? Someone knows if exists some module for achieve this behaviour, without a custom develop?
Thank you,
Adrià
Hello Adrià,
The out-of-the-box registration widget has this functionality. Refer to our documentation articles about the registration widget and the account activation widget for more information on how to configure it.
Registration widget: http://docs.sitefinity.com/registration-widget#account-activation
Account activation widget: http://docs.sitefinity.com/account-activation-widget
This can also be achieved this using our API. The CreateUser method of the UserManager has an overload that accepts an isApproved parameter, which when set to false will require email confirmation.
The UserRegistrationEmailGenerator.GenerateRegistrationConfirmationEmail method can be then used to generate the confirmation email and send it with the EmailSender.
Regards,
Velizar Bishurov
Telerik