aboutsummaryrefslogtreecommitdiff
path: root/cli/create-user.php
diff options
context:
space:
mode:
Diffstat (limited to 'cli/create-user.php')
-rwxr-xr-xcli/create-user.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/create-user.php b/cli/create-user.php
index 29675fa53..7e0a031d9 100755
--- a/cli/create-user.php
+++ b/cli/create-user.php
@@ -16,11 +16,14 @@ if (preg_grep("/^$username$/i", $usernames)) {
echo 'FreshRSS creating user “', $username, "”…\n";
-$ok = FreshRSS_user_Controller::createUser($username,
+$ok = FreshRSS_user_Controller::createUser(
+ $username,
+ empty($options['mail_login']) ? '' : $options['mail_login'],
empty($options['password']) ? '' : $options['password'],
empty($options['api_password']) ? '' : $options['api_password'],
$values,
- !isset($options['no_default_feeds']));
+ !isset($options['no_default_feeds'])
+);
if (!$ok) {
fail('FreshRSS could not create user!');