diff options
author | Chad Horohoe <demon@users.mediawiki.org> | 2009-05-01 01:27:22 +0000 |
---|---|---|
committer | Chad Horohoe <demon@users.mediawiki.org> | 2009-05-01 01:27:22 +0000 |
commit | 1f18e8b35cdee69abbcd7d34c8002668afb403f4 (patch) | |
tree | 4c449ee8e92e7736143448cfa627e5d9d70828ac /includes/AuthPlugin.php | |
parent | 5dfca57300df85d76aede2e52f3f3852eac47449 (diff) | |
download | mediawikicore-1f18e8b35cdee69abbcd7d34c8002668afb403f4.tar.gz mediawikicore-1f18e8b35cdee69abbcd7d34c8002668afb403f4.zip |
(bug 9219) Auth plugins can control editing RealName/Email/Nick preferences. Based on patch by MrPete.
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/50086
Diffstat (limited to 'includes/AuthPlugin.php')
-rw-r--r-- | includes/AuthPlugin.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/includes/AuthPlugin.php b/includes/AuthPlugin.php index b29e13f279b4..f4a4b1080865 100644 --- a/includes/AuthPlugin.php +++ b/includes/AuthPlugin.php @@ -130,6 +130,33 @@ class AuthPlugin { public function allowPasswordChange() { return true; } + + /** + * Can users change their Real Name? + * + * @return bool + */ + public function allowRealNameChange() { + return false; + } + + /** + * Can users change their email address? + * + * @return bool + */ + public function allowEmailChange() { + return false; + } + + /** + * Can users change their Nickname? + * + * @return bool + */ + public function allowNickChange() { + return false; + } /** * Set the given password in the authentication database. |