Update username constraints

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

No files matched your search

+1 -1
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();