Fixed hook documentation for removed hooks
authorTyler Romeo <tylerromeo@gmail.com>
Mon, 28 Jul 2014 20:43:25 +0000 (16:43 -0400)
committerTyler Romeo <tylerromeo@gmail.com>
Mon, 28 Jul 2014 20:43:25 +0000 (16:43 -0400)
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

index dd9f905..83f5136 100644 (file)
@@ -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