From 54266e0152c39a62f146c8665b1a6822d6b78ab0 Mon Sep 17 00:00:00 2001 From: Tyler Romeo Date: Mon, 28 Jul 2014 16:43:25 -0400 Subject: [PATCH] Fixed hook documentation for removed hooks Removed hook definitions for UserComparePasswords and UserCryptPassword, rather than keep them in the file. Bug: 28419 Change-Id: I7bfda155986d1407caef4e3890024c5b8a66fdcc Follows-up: I0a9c972931a0eff0cfb2619cef3ddffd03710285 --- docs/hooks.txt | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index dd9f90586d..83f513678a 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -2788,26 +2788,9 @@ messages!" message, return false to not delete it. $user: User (object) that will clear the message $oldid: ID of the talk page revision being viewed (0 means the most recent one) -'UserComparePasswords': Called when checking passwords, return false to -override the default password checks. REMOVED since 1.23, use Password class instead. -&$hash: String of the password hash (from the database) -&$password: String of the plaintext password the user entered -&$userId: Integer of the user's ID or Boolean false if the user ID was not - supplied -&$result: If the hook returns false, this Boolean value will be checked to - determine if the password was valid - 'UserCreateForm': change to manipulate the login form $template: SimpleTemplate instance for the form -'UserCryptPassword': Called when hashing a password, return false to implement -your own hashing method. REMOVED since 1.23, use Password class instead. -&$password: String of the plaintext password to encrypt -&$salt: String of the password salt or Boolean false if no salt is provided -&$wgPasswordSalt: Boolean of whether the salt is used in the default hashing - method -&$hash: If the hook returns false, this String will be used as the hash - 'UserEffectiveGroups': Called in User::getEffectiveGroups(). $user: User to get groups for &$groups: Current effective groups -- 2.20.1