Rob thanks so much! this query works great to update a user's password from mysql prompt.
-Isaac
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]On Behalf Of Rob Church Sent: Friday, December 16, 2005 7:09 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] How to change a user password external script
This thread [http://mail.wikipedia.org/pipermail/mediawiki-l/2005-December/008854.html] from the mailing list should sort you out. :)
Rob Church
On 17/12/05, Piyush Varma pvarma@inventures.com wrote:
Hi,
I have tried to change the user_password value for a user_name value of a
particular user using PHP md5("password_value") function. But, it does not work.
I have also tried to use a 2-step process:
1: $p = md5( $password); 2: return md5( "{$userid}-{$p}" ); # to get the hashed password
The hashed password value does not match with the value in MySql user
table.
The value of $password = "123qweA" and the user.user_password table value
is fce34f65fd0acb4c716bc2305e47f7c2
While the value I derive using above 1 and 2 lines is
8021331ef9a813b4713630fb1c3ca0fc using $userid = "pvarma"
What should I do to change a user's password outside the MediaWiki web
interface please?
Thank you,
Piyush
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l