aboutsummaryrefslogtreecommitdiff
path: root/cli/create-user.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-02-25 13:08:45 +0100
committerGravatar GitHub <noreply@github.com> 2017-02-25 13:08:45 +0100
commitfb6bb8e826a29c1f94a705ea39ecc052ff59b99f (patch)
tree08643f3a2901fc38aaa0841cebd35fc714842f49 /cli/create-user.php
parentb8ac2b1d8ab47642018bd3f0fe6863b69a2743d6 (diff)
parent0bd4b2c74204a2f9360816ab22aac0da4c459824 (diff)
Merge pull request #1423 from plopoyop/feature/username-in-cli
[WIP] Feature/username in cli
Diffstat (limited to 'cli/create-user.php')
-rwxr-xr-xcli/create-user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/create-user.php b/cli/create-user.php
index 444264cc7..c9e350c14 100755
--- a/cli/create-user.php
+++ b/cli/create-user.php
@@ -17,7 +17,7 @@ if (empty($options['user'])) {
" --language en --email user@example.net --token 'longRandomString --no-default-feeds' )");
}
$username = $options['user'];
-if (!ctype_alnum($username)) {
+if (!FreshRSS_user_Controller::checkUsername($username)) {
fail('FreshRSS error: invalid username “' . $username . '”');
}