1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 01:34:31 +02:00
This commit is contained in:
Ryan Cramer
2020-11-13 10:48:30 -05:00
parent 9d0cf061ed
commit 97c37da187

View File

@@ -422,7 +422,7 @@ class ProcessLogin extends Process implements ConfigurableModule {
$originalValue = $value;
if(!$this->useEmailLogin() || !strpos($value, '@')) {
$value = $this->sanitizer->pageName($value);
$value = $this->sanitizer->pageNameUTF8($value);
$this->submitLoginName = $value;
if($originalValue !== $value && strtolower($originalValue) !== $value) {
// if sanitizer changed anything about the value (other than case) do not accept it