Update username constraints

https://github.com/FreshRSS/FreshRSS/issues/1597
This commit is contained in:
Alexandre Alapetite
2017-07-22 15:47:13 +02:00
parent 16b269f33d
commit c3f2302be7
3 changed files with 5 additions and 5 deletions

View File

@@ -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();