Activating User Profiles

    Activating user profiles

    Activate controller activates user profile, so it's possible to request registration confirmation by following the special link in the letter sent after the registration.

    If the user hasn't received this letter, then he can request it once more.

    User profile assumes to be inactivated if the "verified" field value is 0.

    Snippet calls to register and authorize users should have the "checkActivation" parameter enabled. It's possible to reset activation if user changes some field (email by default).

    If user creates password himself during registration, then this password needs to be requested to send a letter with the activation link. Or the new password will be created, because if user hasn't received the letter containing generated password after registration, then he cannot know this password

    All model fields are available in templates. Additional field "user.password" with raw password value is set as well as the "activate.url" field with activation link.

    Parameters

    model

    Class to manage users.

    Possible values - class name. Use Pathologic\EvolutionCMS\MODxAPI\modUsers model from pathologic/modxapi package in Evo 3.0.

    Default value - \modUsers

    modelPath

    Path to the class to manage users.

    Possible values - relative file path.

    Default value - assets/lib/MODxAPI/modUsers.php

    redirectTo

    Redirects user after successful activation.

    Possible values - target page id or array.

    Default value - none.

    exitTo

    Redirects authorized user.

    Possible values - target page id or array.

    Default value - none.

    skipTpl

    Outputs message if user is authorized.

    Possible values - template name, according to DocLister templating rules.

    Default value - activate lexicon entry with the key [%activate.default_skipTpl%].

    reportTpl

    Letter template containing profile activation data.

    Possible values - template name, according to DocLister templating rules.

    Default value - none.

    activateReportTpl

    Successful activation letter template.

    Possible values - template name, according to DocLister templating rules.

    Default value - none.

    successTpl

    Message template if e-mail with activation data is sent successfully.

    Possible values - template name, according to DocLister templating rules.

    Default value - activate lexicon entry with the key [%activate.default_successTpl%]

    activateSuccessTpl

    Message template if activation is finished successfully.

    Possible values - template name, according to DocLister templating rules.

    Default value - activate lexicon entry with the key [+activate.default_activateSuccessTpl+]

    passwordLength

    Password length.

    Possible values - number of characters greater than 6.

    Default value - 6.