Bitrix Site Manager

OnAfterUserAuthorize event

event_handler(
 array user_fields
)
The event handler is called from the CUser::Authorize method after a user authorization. The handler receives an array of all user fields in the user_fields parameter.

Parameters

ParameterDescription
user_fields Array of user fields.

See Also

Example



<?
// file /bitrix/php_interface/init.php
// register handler
AddEventHandler("main", 
                "OnAfterUserAuthorize", 
                Array("MyClass", 
                      "OnAfterUserAuthorizeHandler"));

class MyClass
{
    // create the OnAfterUserAuthorize handler
    function OnAfterUserAuthorizeHandler($arUser)
    {
        // perform actions on the authorized user

    }
}
?>