Fixed authentication with credentials
This commit is contained in:
parent
968a15ef60
commit
2fab532fde
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ final class AuthController extends AbstractController
|
|||
|
||||
public function login()
|
||||
{
|
||||
if (isset($this->inputReader->userName) and isset($this->inputReader->password))
|
||||
if (isset($this->inputReader->userNameOrEmail) and isset($this->inputReader->password))
|
||||
{
|
||||
$formData = new \Szurubooru\FormData\LoginFormData($this->inputReader);
|
||||
$this->authService->loginFromCredentials($formData);
|
||||
|
|
Loading…
Reference in a new issue