diff options
| author | 2018-02-14 22:15:34 +0100 | |
|---|---|---|
| committer | 2018-02-14 22:15:34 +0100 | |
| commit | ac3e38359b420068b75cc848d89a3a6fc7b6e6c6 (patch) | |
| tree | bb48cd9032a62af1211152ca9168cbca9888aee7 /cli/update-user.php | |
| parent | 04a3c3552c7fd3cc9b6156d667c6fc5074d7bfad (diff) | |
Allow admin user to reset passwords (#1765)
See #960
Diffstat (limited to 'cli/update-user.php')
| -rwxr-xr-x | cli/update-user.php | 3 |
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); |
