Page MenuHomePhabricator

Add Hook To User::isValidPassword
Closed, ResolvedPublic

Description

This is a request to add a hook to the function User::isValidPassword so that extensions can impose additional password requirements. The new function would look something like this:

static function isValidPassword( $password ) {

global $wgMinimalPasswordLength;

return (strlen( $password ) >= $wgMinimalPasswordLength) && wfRunHooks( 'User::IsValidPassword', array( &$password ) );
}


Version: unspecified
Severity: enhancement

Details

Reference
bz10617

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:53 PM
bzimport set Reference to bz10617.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

There *is* a hook in trunk.

robchur wrote:

*** This bug has been marked as a duplicate of bug 9180 ***