Topic on Manual talk:ChangePassword.php/Flow

php maintenance/changePassword.php --user=XYZ --password=PW not working

3
Antoine2711 (talkcontribs)

I'm trying to change a password thru the command line, but even if I set this:

$wgPasswordPolicy['policies']['default']['MinimalPasswordLength']         = 6;

$wgPasswordPolicy['policies']['sysop']['MinimalPasswordLength']           = 6;

$wgPasswordPolicy['policies']['interface-admin']['MinimalPasswordLength'] = 6;

$wgPasswordPolicy['policies']['bureaucrat']['MinimalPasswordLength']      = 6;


I get an error with this:

php maintenance/changePassword.php --user=My_User --password=Ab$456

Passwords must be at least 6 characters.


And this works, but the password is not working to login.

php maintenance/changePassword.php --user=My_User --password=Ab$45678

Password set for My_User


Not working…


What should I do?!


Regards,

Antoine

Antoine2711 (talkcontribs)

Well…


This seams to work:

php maintenance/changePassword.php --user "User" --password "Ab$456"

Passwords must be at least 6 characters.


But it doesn't.


A.

Antoine2711 (talkcontribs)

K. My problem was the double quote that don't shield the special meaning of $.


This works:

php maintenance/changePassword.php --user "User" --password 'Ab$456'


Fixed.

Reply to "php maintenance/changePassword.php --user=XYZ --password=PW not working"