setNewPassword

The setNewPassword hook is triggered after a new password has been set. It passes the user object and the encrypted password as arguments and does not expect a return value.

Available

from Contao 2.2.3.

Parameters

  1. object $objUser

    Current FrontendUser that changed her password.

  2. string $strPassword

    The new password (not encrypted!).

Example

<?php

// config.php
$GLOBALS['TL_HOOKS']['setNewPassword'][] = array('MyClass', 'mySetNewPassword');

// MyClass.php
public function mySetNewPassword($objUser, $strPassword)
{
    // Do something
}

More information

References

See also

  • createNewUser - triggered when a new front end user registers on the website.
  • activateAccount - triggered when a new front end account is activated.

results matching ""

    No results matching ""