From 1f18e8b35cdee69abbcd7d34c8002668afb403f4 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 1 May 2009 01:27:22 +0000 Subject: (bug 9219) Auth plugins can control editing RealName/Email/Nick preferences. Based on patch by MrPete. --- includes/AuthPlugin.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'includes/AuthPlugin.php') 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. -- cgit v1.2.3