From ac3e38359b420068b75cc848d89a3a6fc7b6e6c6 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Wed, 14 Feb 2018 22:15:34 +0100 Subject: Allow admin user to reset passwords (#1765) See #960 --- cli/update-user.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/update-user.php') diff --git a/cli/update-user.php b/cli/update-user.php index 4529b8531..7eb3e81ff 100755 --- a/cli/update-user.php +++ b/cli/update-user.php @@ -7,7 +7,8 @@ $username = cliInitUser($options['user']); echo 'FreshRSS updating user “', $username, "”…\n"; -$ok = FreshRSS_user_Controller::updateContextUser( +$ok = FreshRSS_user_Controller::updateUser( + $username, empty($options['password']) ? '' : $options['password'], empty($options['api_password']) ? '' : $options['api_password'], $values); -- cgit v1.2.3