mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-23 12:48:01 -05:00
Allow email as admin username (#2421)
Fix https://github.com/FreshRSS/FreshRSS/issues/2418 https://github.com/FreshRSS/FreshRSS/pull/2407
This commit is contained in:
committed by
GitHub
parent
1a7a28e977
commit
6fe9ec9f76
@@ -125,7 +125,9 @@ function saveStep2() {
|
||||
$_SESSION['title'] = $system_default_config->title;
|
||||
$_SESSION['old_entries'] = param('old_entries', $user_default_config->old_entries);
|
||||
$_SESSION['auth_type'] = param('auth_type', 'form');
|
||||
$_SESSION['default_user'] = substr(preg_replace('/[^0-9a-zA-Z_]/', '', param('default_user', '')), 0, 38);
|
||||
if (FreshRSS_user_Controller::checkUsername(param('default_user', ''))) {
|
||||
$_SESSION['default_user'] = param('default_user', '');
|
||||
}
|
||||
|
||||
$password_plain = param('passwordPlain', false);
|
||||
if ($password_plain !== false && cryptAvailable()) {
|
||||
|
||||
Reference in New Issue
Block a user