Add new authentication-related hooks (and remove one) replacing some AuthPlugin methods
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 4 Sep 2015 16:55:34 +0000 (12:55 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 18 Sep 2015 14:46:13 +0000 (10:46 -0400)
commit37062a0c0d0b73e7b265be5db8e71163f6cd31be
tree16a90c527b29f5fa5dfd8b53befeabdf72c230ba
parent66522e992899d87839608780d61060dbd0ae030c
Add new authentication-related hooks (and remove one) replacing some AuthPlugin methods

* LocalUserCreated: Replaces AuthPlugin::initUser()
* UserGroupsChanged: Replaces AuthPlugin::updateExternalDBGroups()
** The similar UserRights hook is deprecated, mainly to get rid of the
   passing of $user by reference.
* UserIsHidden: Replaces AuthPluginUser::isHidden()
* UserIsLocked: Replaces AuthPluginUser::isLocked()
* UserLoggedIn: Replaces AuthPlugin::updateUser()

Also, AuthPlugin::updateExternalDB() is deprecated in favor of the
existing UserSaveSettings hook.

Also, 'ResetSessionID' has been removed. Nothing uses it, I don't know
why I even added it in the first place.

Also, replacing the User object passed to AuthPlugin::initUser() and
AuthPlugin::updateUser() will now raise a warning.

Change-Id: If7474cfb26a29b11c2e78147069419ca3b1cba95
RELEASE-NOTES-1.26
docs/hooks.txt
includes/AuthPlugin.php
includes/GlobalFunctions.php
includes/Preferences.php
includes/User.php
includes/specials/SpecialUserlogin.php
includes/specials/SpecialUserrights.php