aboutsummaryrefslogtreecommitdiffstats
path: root/includes/AuthPlugin.php
diff options
context:
space:
mode:
authorChad Horohoe <demon@users.mediawiki.org>2009-05-01 01:27:22 +0000
committerChad Horohoe <demon@users.mediawiki.org>2009-05-01 01:27:22 +0000
commit1f18e8b35cdee69abbcd7d34c8002668afb403f4 (patch)
tree4c449ee8e92e7736143448cfa627e5d9d70828ac /includes/AuthPlugin.php
parent5dfca57300df85d76aede2e52f3f3852eac47449 (diff)
downloadmediawikicore-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.php27
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.