Documentation

OnAfterUserAuthorize

handler function(
 array user_fields
)
The event handler will be called from the method CUser::Authorize after user authorization. Array of all fields for authorized user is passed in the user_fields parameter.

Parameters

ParameterDescription
user_fields Array of all user fields.

See Also

Example of handler function:

<?
// file /bitrix/php_interface/init.php
// register the handler
AddEventHandler("main", "OnAfterUserAuthorize", Array("MyClass", "OnAfterUserAuthorizeHandler"));
class MyClass { // create the event handler "OnAfterUserAuthorize" function OnAfterUserAuthorizeHandler($arUser) { // execute all actions, associated with authorization } } ?>


© «Bitrix24», 2001-2022
Up