Compare commits
2 Commits
890c44da0c
...
769e7ed59e
Author | SHA1 | Date |
---|---|---|
Matthieu Lamalle | 769e7ed59e | |
Valentin Carroy | abe212c7ad |
|
@ -84,9 +84,11 @@ class SQLLoginUserAuthenticator extends AbstractLoginFormAuthenticator
|
|||
$request->getSession()->set(self::ERROR_LOGIN, true);
|
||||
throw new AuthenticationException();
|
||||
}
|
||||
if (!$remoteHashedPassword) {
|
||||
throw new Exception('Erreur inconnue');
|
||||
|
||||
if (null === $remoteHashedPassword) {
|
||||
$remoteHashedPassword = "";
|
||||
}
|
||||
|
||||
try {
|
||||
// Comparaison remote hash et hash du input password + salt
|
||||
$this->passwordHasher->verify($remoteHashedPassword, $plaintextPassword, $remoteSalt);
|
||||
|
|
Loading…
Reference in New Issue