aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2017-07-27 09:40:53 +0200
committerGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2017-07-27 09:40:53 +0200
commit03a99c2408ce5439c3a1402cf308eec557bfdaaf (patch)
tree7ca7fb0b6035d111430260b4219b17c69129dfb9 /cli
parent1138c8a63b1ff54eb96821d4f4ff829f5dc67a02 (diff)
parentda685f9390b8bfa1193c9d335d36f3648c17fe7e (diff)
Merge branch 'FreshRSS/dev' into cli_update_user
Diffstat (limited to 'cli')
-rwxr-xr-xcli/create-user.php2
-rwxr-xr-xcli/do-install.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/cli/create-user.php b/cli/create-user.php
index c3a45cad8..f710e8d66 100755
--- a/cli/create-user.php
+++ b/cli/create-user.php
@@ -18,7 +18,7 @@ if (empty($options['user'])) {
}
$username = $options['user'];
if (!FreshRSS_user_Controller::checkUsername($username)) {
- fail('FreshRSS error: invalid username “' . $username . '”');
+ fail('FreshRSS error: invalid username “' . $username . '”! Must be matching ' . FreshRSS_user_Controller::USERNAME_PATTERN);
}
$usernames = listUsers();
diff --git a/cli/do-install.php b/cli/do-install.php
index 143ca5c3e..54e3c3d4f 100755
--- a/cli/do-install.php
+++ b/cli/do-install.php
@@ -81,11 +81,11 @@ if ($requirements['all'] !== 'ok') {
}
if (!FreshRSS_user_Controller::checkUsername($options['default_user'])) {
- fail('FreshRSS invalid default username (must be ASCII alphanumeric): ' . $options['default_user']);
+ fail('FreshRSS error: invalid default username “' . $options['default_user'] . '”! Must be matching ' . FreshRSS_user_Controller::USERNAME_PATTERN);
}
if (isset($options['auth_type']) && !in_array($options['auth_type'], array('form', 'http_auth', 'none'))) {
- fail('FreshRSS invalid authentication method (auth_type must be one of { form, http_auth, none }: ' . $options['auth_type']);
+ fail('FreshRSS invalid authentication method (auth_type must be one of { form, http_auth, none }): ' . $options['auth_type']);
}
if (file_put_contents(join_path(DATA_PATH, 'config.php'), "<?php\n return " . var_export($config, true) . ";\n") === false) {