Manual:changePassword.php

From MediaWiki.org

Jump to: navigation, search
MediaWiki File: changePassword.php
Location: /maintenance/
Source code: HEAD

1.15.21.14.11.6.12

Classes: None


changePassword.php can be used to change the password of a user on your wiki.

[edit] Usage

php changePassword.php --user=target username --password=new password

As an example:

php changePassword.php --user=JohnSmith --password=Secret12

Or to display a help message:

php changePassword.php --help

[edit] Options

--user (the user's name)
--password (the user's new password)
--help (displays help message)

[edit] Troubleshooting

This script may not work if you are using memcached on your MediaWiki installation. You can restart memcached to make it clear it's cache and allow you to login again.