diff options
| author | 2020-09-17 09:43:39 +0200 | |
|---|---|---|
| committer | 2020-09-17 09:43:39 +0200 | |
| commit | bb9b166eb1be73226d2cf978a05a70ed83faec1e (patch) | |
| tree | 68adbe061fdc1ee3f06ae284fa00e604773e4160 /cli/update-user.php | |
| parent | f1fe2147a1f551e4d1e5c06421744dc75be0d4ea (diff) | |
Fix CLI api_password (#3179)
* Fix CLI api_password
#fix https://github.com/FreshRSS/FreshRSS/issues/3177
Fix regression from https://github.com/FreshRSS/FreshRSS/pull/2675
* Update cli/_update-or-create-user.php
Co-authored-by: oupala <oupala@users.noreply.github.com>
Co-authored-by: oupala <oupala@users.noreply.github.com>
Diffstat (limited to 'cli/update-user.php')
| -rwxr-xr-x | cli/update-user.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/update-user.php b/cli/update-user.php index 75c778fe5..953a9d2c0 100755 --- a/cli/update-user.php +++ b/cli/update-user.php @@ -17,6 +17,13 @@ if (!$ok) { fail('FreshRSS could not update user!'); } +if (!empty($options['api_password'])) { + $error = FreshRSS_api_Controller::updatePassword($options['api_password']); + if ($error) { + fail($error); + } +} + invalidateHttpCache($username); accessRights(); |
