Page MenuHomePhabricator

User::getCanonicalName() return false when run changePassword.php
Closed, InvalidPublic

Description

This is feedback from the help desk.

Error message:

[a4df1cc376641f0cce5b784c] [no req]   PasswordError from line 62 of /var/www/mywiki/public_html/mediawiki-1.30.0/maintenance/changePassword.php: * The supplied credentials cannot be changed, as nothing would use them.
* The authentication data change was not handled. Maybe no provider was configured?

Backtrace:
#0 /var/www/mywiki/public_html/mediawiki-1.30.0/maintenance/doMaintenance.php(92): ChangePassword->execute()
#1 /var/www/mywiki/public_html/mediawiki-1.30.0/maintenance/changePassword.php(73): require_once(string)
#2 {main}

Event Timeline

I think his LocalPasswordPrimaryAuthenticationProvider have a problem, because it. The 4th from the bottom var_dump() return value is false;

RazeSoldier renamed this task from User::getCanonicalName return false when run changePassword.php to User::getCanonicalName() return false when run changePassword.php.Feb 20 2018, 6:11 PM

Under normal circumstances, User::getCanonicalName() should return the user name entered by the user. But I do not know what strange things happen inside User::getCanonicalName().

The problem has been solved. Looks like is the user to add his username to [[mediawiki:newusermessage-editor]] page, cause the user can't login and not run changePassword.php.

RazeSoldier changed the task status from Declined to Invalid.Feb 22 2018, 11:00 AM