postAuthenticate

The postAuthenticate hook is triggered after a user was authenticated. It passes the user object as argument and does not expect a return value.

Available

from Contao 3.5.0.

Parameters

  1. User $objUser

    The user (object) which just has been authenticated.

Example

<?php

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

// MyClass.php
public function mypostAuthenticate(User $objUser)
{
    // Do something
}

More information

References

See also

results matching ""

    No results matching ""