Merge pull request 'fix(login) #59 : handle case earlier during login' (#60) from issue-59 into develop
Some checks failed
Cadoles/hydra-sql/pipeline/head There was a failure building this commit
Some checks failed
Cadoles/hydra-sql/pipeline/head There was a failure building this commit
Reviewed-on: #60 Reviewed-by: Valentin Carroy <vcarroy@cadoles.com>
This commit is contained in:
@ -60,7 +60,7 @@ class SQLLoginUserAuthenticator extends AbstractLoginFormAuthenticator
|
||||
public function authenticate(Request $request): SelfValidatingPassport
|
||||
{
|
||||
$form = $request->request->all(key: 'login');
|
||||
$login = $form['login'];
|
||||
$login = \strtolower($form['login']);
|
||||
$plaintextPassword = $form['password'];
|
||||
$session = $request->getSession();
|
||||
try {
|
||||
|
@ -28,7 +28,6 @@ class SQLLoginService extends AbstractController
|
||||
public function fetchPasswordAndDatas(string $login): array
|
||||
{
|
||||
$dataRequest = $this->sqlLoginRequest->getDatasRequest();
|
||||
$login = \strtolower($login);
|
||||
$datas = $this->executeRequestWithLogin($dataRequest, $login);
|
||||
|
||||
return $datas;
|
||||
|
Reference in New Issue
Block a user