From 2fab532fde73851d2c4b948d8074464bd4ab9a93 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 10 Sep 2014 13:58:24 +0200 Subject: [PATCH] Fixed authentication with credentials --- src/Controllers/AuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);