summaryrefslogtreecommitdiff
path: root/cli/create-user.php
diff options
context:
space:
mode:
Diffstat (limited to 'cli/create-user.php')
-rwxr-xr-xcli/create-user.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/create-user.php b/cli/create-user.php
index f98168cf6..dd0c23175 100755
--- a/cli/create-user.php
+++ b/cli/create-user.php
@@ -28,6 +28,14 @@ if (!$ok) {
fail('FreshRSS could not create user!');
}
+if (!empty($options['api_password'])) {
+ $username = cliInitUser($username);
+ $error = FreshRSS_api_Controller::updatePassword($options['api_password']);
+ if ($error) {
+ fail($error);
+ }
+}
+
invalidateHttpCache(FreshRSS_Context::$system_conf->default_user);
echo '• Remember to refresh the feeds of the user: ', $username , "\n",