against the previous revision, whether currently deleted or live.
* Added tooltips for the "Go" and "Search" buttons
* (bug 11649) Show input form when Special:Whatlinkshere has no parameters
+* isValidEmailAddr hook added to User method of that name, to allow, e.g., re-
+ stricting e-mail addresses to a specific domain
=== Bug fixes in 1.12 ===
&$text: string containing partially parsed text
&$this->mStripState: Parser's internal StripState object
+'isValidEmailAddr': Override the result of User::isValidEmailAddr(), for ins-
+tance to return false if the domain name doesn't match your organization
+$addr: The e-mail address entered by the user
+&$result: Set this and return false to override the internal checks
+$user: User the address is being validated for
+
'isValidPassword': Override the result of User::isValidPassword()
-$password: Desired password
+$password: The password entered by the user
&$result: Set this and return false to override the internal checks
$user: User the password is being validated for
More hooks might be available but undocumented, you can execute
-./maintenance/findhooks.php to find hidden one.
\ No newline at end of file
+./maintenance/findhooks.php to find hidden one.
* @return bool
*/
public static function isValidEmailAddr( $addr ) {
+ $result = null;
+ if( !wfRunHooks( 'isValidEmailAddr', array( $addr, &$result, $this ) ) ) {
+ return $result;
+ }
+
return strpos( $addr, '@' ) !== false;
}