Last modified: 2007-07-17 16:28:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12617, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10617 - Add Hook To User::isValidPassword
Add Hook To User::isValidPassword
Status: RESOLVED DUPLICATE of bug 9180
Product: MediaWiki
Classification: Unclassified
User login and signup (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-07-17 15:04 UTC by Christian Neubauer
Modified: 2007-07-17 16:28 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Christian Neubauer 2007-07-17 15:04:36 UTC
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 ) );
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-07-17 16:26:17 UTC
There *is* a hook in trunk.
Comment 2 Rob Church 2007-07-17 16:28:00 UTC

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

Note You need to log in before you can comment on or make changes to this bug.