diff --git a/src/Controllers/AuthController.php b/src/Controllers/AuthController.php index 01d250d4..f3210681 100644 --- a/src/Controllers/AuthController.php +++ b/src/Controllers/AuthController.php @@ -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);