[SECURITY] Remove aggressive normalization of nicknames. This will be moved to a plugin in the future and we'll open an RFC, as discussed
This commit is contained in:
parent
4ec9b910c2
commit
cb7fa0a081
|
@ -90,7 +90,8 @@ class Authenticator extends AbstractFormLoginAuthenticator
|
|||
throw new InvalidCsrfTokenException();
|
||||
}
|
||||
|
||||
$nick = Nickname::normalize($credentials['nickname']);
|
||||
// $nick = Nickname::normalize($credentials['nickname']);
|
||||
$nick = $credentials['nickname'];
|
||||
$user = null;
|
||||
try {
|
||||
$user = DB::findOneBy('local_user', ['or' => ['nickname' => $nick, 'outgoing_email' => $nick]]);
|
||||
|
|
|
@ -144,9 +144,9 @@ class Nickname
|
|||
}
|
||||
|
||||
$nickname = trim($nickname);
|
||||
$nickname = str_replace('_', '', $nickname);
|
||||
$nickname = mb_strtolower($nickname);
|
||||
$nickname = Normalizer::normalize($nickname, Normalizer::FORM_C);
|
||||
// $nickname = str_replace('_', '', $nickname);
|
||||
// $nickname = mb_strtolower($nickname);
|
||||
// $nickname = Normalizer::normalize($nickname, Normalizer::FORM_C);
|
||||
|
||||
if (!$checking_reserved) {
|
||||
if (mb_strlen($nickname) < 1) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user