mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2026-05-04 15:16:10 +02:00
When using the CLI, only set a user password if it's changed.
This is mainly to prevent session invalidation for the 'admin' user when 'ADMIN_USER_PASS' is defined and the container starts up. Even if 'ADMIN_USER_PASS' hadn't changed, 'UserHelper::user_modify()' would get invoked and change 'pwd_hash', which would result in 'Sessions::validate_session()' invalidating the session.
This commit is contained in:
parent
5cbcc14224
commit
63c71bad91
@ -459,7 +459,7 @@
|
||||
|
||||
Debug::log("Changing password of user $login...");
|
||||
|
||||
if (UserHelper::user_modify($uid, $password)) {
|
||||
if (UserHelper::user_has_password($uid, $password) || UserHelper::user_modify($uid, $password)) {
|
||||
Debug::log("Success.");
|
||||
} else {
|
||||
Debug::log("Operation failed, check the logs for more information.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user