ExpressionEngine Docs

Login Controller Extension Hooks

login_authenticate_start()

Parameter Type
Returns Void

Perform additional actions prior to/take over the control panel login routine.

How it’s called:

$this->extensions->call('login_authenticate_start');
if ($this->extensions->end_script === TRUE) return;

cp_member_login($hook_data)

Parameter Type Description
$hook_data Object Member object with session ID ($hook_data->session_id) and CP permission boolean ($hook_data->can_access_cp)
Returns Void

Executes after control panel session is instantiated, allows additional processing on control panel logins.

How it’s called:

ee()->extensions->call('cp_member_login', $this->_hook_data());
if (ee()->extensions->end_script === TRUE) return;

cp_member_logout()

Parameter Type
Returns Void

Perform additional actions after a user logs out of the control panel.

How it’s called:

$this->extensions->call('cp_member_logout');
if ($this->extensions->end_script === TRUE) return;

cp_member_reset_password()

Parameter Type
Returns Void

Perform additional actions after a user resets their password via the control panel.

How it’s called:

$this->extensions->call('cp_member_process_reset_password');
if ($this->extensions->end_script === TRUE) return;

cp_member_send_reset_token_start($address)

Parameter Type Description
$address String Email address posted from the control panel reset password form
Returns String Email address after extension processes it

Additional processing of email address sent via control panel reset password form.

How it’s called:

if (ee()->extensions->active_hook('member_auth_send_reset_token_start')) {
    $address = ee()->extensions->call('member_auth_send_reset_token_start', $address);
    if (ee()->extensions->end_script === true) {
        return;
    }
}