diff options
author | Chad Horohoe <demon@users.mediawiki.org> | 2009-05-19 16:23:58 +0000 |
---|---|---|
committer | Chad Horohoe <demon@users.mediawiki.org> | 2009-05-19 16:23:58 +0000 |
commit | 9b3711e58bce5bf581fae9e4bf9e059c8c777b3d (patch) | |
tree | e7d85122463d984cd0238031e62a7c7b3bd34a1d /includes/AuthPlugin.php | |
parent | 3b632e09aca414a4929647c29cb0a0db03c647dc (diff) | |
download | mediawikicore-9b3711e58bce5bf581fae9e4bf9e059c8c777b3d.tar.gz mediawikicore-9b3711e58bce5bf581fae9e4bf9e059c8c777b3d.zip |
Per code review: Redo these allowBlah() functions (except allowPasswordChange) into a general allowPropChange(), update Preferences to use this. Checked extensions in SVN using AuthPlugin and none have implemented any of the allow*() functions, so nothing should break.
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/50776
Diffstat (limited to 'includes/AuthPlugin.php')
-rw-r--r-- | includes/AuthPlugin.php | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/includes/AuthPlugin.php b/includes/AuthPlugin.php index 29be2def3154..3632dbfd9540 100644 --- a/includes/AuthPlugin.php +++ b/includes/AuthPlugin.php @@ -123,38 +123,22 @@ class AuthPlugin { } /** - * Can users change their passwords? - * - * @return bool - */ - public function allowPasswordChange() { - return true; - } - - /** - * Can users change their Real Name? + * Allow a property change? Properties are the same as preferences + * and use the same keys. 'Realname' 'Emailaddress' and 'Nickname' + * all reference this. * * @return bool */ - public function allowRealNameChange() { + public function allowPropChange( $prop = '' ) { return true; } /** - * Can users change their email address? - * - * @return bool - */ - public function allowEmailChange() { - return true; - } - - /** - * Can users change their Nickname? + * Can users change their passwords? * * @return bool */ - public function allowNickChange() { + public function allowPasswordChange() { return true; } |