Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -467,6 +467,7 @@ |
468 | 468 | 'isValidPassword': Override the result of User::isValidPassword() |
469 | 469 | $password: Desired password |
470 | 470 | &$result: Set this and return false to override the internal checks |
| 471 | +$user: User the password is being validated for |
471 | 472 | |
472 | 473 | 'LoginAuthenticateAudit': a login attempt for a valid user account either succeeded or failed. |
473 | 474 | No return data is accepted; this hook is for auditing only. |
Index: trunk/phase3/includes/User.php |
— | — | @@ -490,7 +490,7 @@ |
491 | 491 | global $wgMinimalPasswordLength, $wgContLang; |
492 | 492 | |
493 | 493 | $result = null; |
494 | | - if( !wfRunHooks( 'isValidPassword', array( $password, &$result ) ) ) |
| 494 | + if( !wfRunHooks( 'isValidPassword', array( $password, &$result, $this ) ) ) |
495 | 495 | return $result; |
496 | 496 | if( $result === false ) |
497 | 497 | return false; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -150,6 +150,8 @@ |
151 | 151 | phisticated handheld browser. |
152 | 152 | * (bug 3173) Option to offer exported pages as a download, rather than displaying |
153 | 153 | inline, as in most browsers |
| 154 | +* Pass the user as an argument to 'isValidPassword' hook callbacks; see |
| 155 | + docs/hooks.txt for more information |
154 | 156 | |
155 | 157 | == Bugfixes since 1.10 == |
156 | 158 | |