Fixed authentication with credentials

This commit is contained in:
Marcin Kurczewski 2014-09-10 13:58:24 +02:00
parent 968a15ef60
commit 2fab532fde

View file

@ -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);