aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <aledeg@users.noreply.github.com> 2018-02-14 22:15:34 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-02-14 22:15:34 +0100
commitac3e38359b420068b75cc848d89a3a6fc7b6e6c6 (patch)
treebb48cd9032a62af1211152ca9168cbca9888aee7 /cli
parent04a3c3552c7fd3cc9b6156d667c6fc5074d7bfad (diff)
Allow admin user to reset passwords (#1765)
See #960
Diffstat (limited to 'cli')
-rwxr-xr-xcli/update-user.php3
1 files changed, 2 insertions, 1 deletions
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);