aboutsummaryrefslogtreecommitdiff
path: root/cli/update-user.php
diff options
context:
space:
mode:
Diffstat (limited to 'cli/update-user.php')
-rwxr-xr-xcli/update-user.php7
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();