aboutsummaryrefslogtreecommitdiff
path: root/cli/do-install.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-07-23 18:34:39 +0200
committerGravatar GitHub <noreply@github.com> 2017-07-23 18:34:39 +0200
commite4f2784313753bca86487be03d487d5a1523927e (patch)
tree76d717008a310fb7c1fa11f270a8809de9d7defb /cli/do-install.php
parentbf6dc46c644002dd195dfad18af9a1116a00fad4 (diff)
parent8b834527a2518703539857fac185ddace422e5b0 (diff)
Merge pull request #1601 from Alkarex/db_username_length
Usernames checks
Diffstat (limited to 'cli/do-install.php')
-rwxr-xr-xcli/do-install.php4
1 files changed, 2 insertions, 2 deletions
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) {