'UserLoginForm': change to manipulate the login form
$template: SimpleTemplate instance for the form
+'UserLoginMailPassword': Block users from emailing passwords
+$name: the username to email the password of.
+&$error: out-param ÐÊthe error message to return.
+
'UserLogout': before a user logs out
$user: the user object that is about to be logged out
$this->mainLoginForm( wfMsg( 'blocked-mailpassword' ) );
return;
}
+
+ // Check for hooks
+ $error = null;
+ if ( ! wfRunHooks( 'UserLoginMailPassword', array( $this->mName, &$error ) ) ) {
+ $this->mainLoginForm( $error );
+ return;
+ }
# Check against the rate limiter
if( $wgUser->pingLimiter( 'mailpassword' ) ) {