mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-30 05:34:45 +02:00
temp fix login
This commit is contained in:
parent
23e02ff5e2
commit
6f5ce87985
@ -164,10 +164,10 @@ class Login extends \Filament\Auth\Pages\Login
|
||||
|
||||
protected function getCredentialsFromFormData(array $data): array
|
||||
{
|
||||
$loginType = filter_var($data['login'], FILTER_VALIDATE_EMAIL) ? 'email' : 'username';
|
||||
$loginType = filter_var($data['email'], FILTER_VALIDATE_EMAIL) ? 'email' : 'username';
|
||||
|
||||
return [
|
||||
$loginType => mb_strtolower($data['login']),
|
||||
$loginType => mb_strtolower($data['email']),
|
||||
'password' => $data['password'],
|
||||
];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user