Try Now
More in this section

Forums / Developing with Sitefinity / Workflow on user creation

Workflow on user creation

2 posts, 0 answered
  1. Setxi
    Setxi avatar
    7 posts
    16 Mar 2015
    14 Jan
    Link to this post
    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,
  2. Velizar Bishurov
    Velizar Bishurov avatar
    143 posts
    24 Oct 2016
    19 Jan
    Link to this post
    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.

    Velizar Bishurov
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered