|
Global events are not specific to any table or view.
Before login
BeforeLogin(&$username, &$password)
Executed on the login page before verifying username and password
Pages:
Login
Arguments:
$username
$password
Return value:
True: login will be validated against the login table
False: invalid login
After successful login
AfterSuccessfulLogin($username, $password, $data)
Executed on the login page after username and password successfully verified
Pages:
Login
Arguments:
$username
$password
$data - array with existing user record in the login table
After unsuccessful login
AfterUnsuccessfulLogin($username, $password)
Executed on the login page after failed authentication
Pages:
Login
Arguments:
$username
$password
Before registration
BeforeRegister($userdata)
Executed on the registration page
Pages:
Registartion
Arguments:
$userdata - array that stores values entered on Registration page. To
access specific field value use $userdata["FieldName"].
Return value:
True: continue with registration
False: prohibit registration
After successful registration
AfterSuccessfulRegistration($userdata)
Executed on the registration page after new user data was added to
the database
Pages:
Registartion
Arguments:
$userdata - array that stores values entered on Registration page. To
access specific field value use $userdata["FieldName"].
After unsuccessful registration
AfterUnsuccessfulRegistration($userdata)
Executed on the registration page if new user record wasn't created
Pages:
Registartion
Arguments:
$userdata - array that stores values entered on Registration page. To
access specific field value use $userdata["FieldName"].
Before change password
BeforeChangePassword($oldpassword, $newpassword)
Executed on change password page after password was changed
Pages:
Change Password
Arguments:
$oldpassword
$newpassword
Return value:
True: allow password to be changed
False: do not allow password to be changed
After password changed
AfterChangePassword($oldpassword, $newpassword)
Executed on change password page after password was changed
Pages:
Change Password
Arguments:
$oldpassword
$newpassword
Before password reminder sent
BeforeRemindPassword(&$username, &$email)
Executed on password reminder page before password reminder is sent
to user email
Pages:
Password Reminder
Arguments:
$username - username to search for
$email - email address to search for
Return value:
True: continue with password reminder
False: cancel password reminder procedure
After password reminder sent
AfterRemindPassword($username, $email)
Executed on password reminder page after password reminder is sent to
user email
Pages:
Password Reminder
Arguments:
$username - username to search for
$email - email address to search for
|