MediaWiki attempts to login after entering several wrong passwords

mediawikipasswords

When requesting a new password from MediaWiki, but failing to enter the correct password, the account will be locked for a day before allowing a request for a new password again. During this period, even administration account can't do anything to unlock the account.

Is there any way to unlock the account right away?

Best Answer

You can run a maintenance script:

php changePassword.php --user="username" --password="password"

More Info about running maintenance scripts


Or modify the database:

UPDATE user SET user_password = CONCAT(':B:somesalt:', MD5(CONCAT('somesalt-', MD5('somepass')))) WHERE user_name = 'someuser';


Alternatively you you can install an extension which allows other administrators to reset your password.