maj: suppression commentaire inutile
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit
Details
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit
Details
This commit is contained in:
parent
422e97d329
commit
73eae4176e
|
@ -27,7 +27,7 @@ class PasswordEncoder implements LegacyPasswordHasherInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pas utilisé
|
* Pas utilisé, mais on doit le garder pour le implements
|
||||||
*/
|
*/
|
||||||
public function hash(string $plainPassword, string $salt = null): string
|
public function hash(string $plainPassword, string $salt = null): string
|
||||||
{
|
{
|
||||||
|
|
|
@ -80,12 +80,7 @@ class SQLLoginUserAuthenticator extends AbstractAuthenticator
|
||||||
if ($remoteHashedPassword) {
|
if ($remoteHashedPassword) {
|
||||||
try {
|
try {
|
||||||
// Comparaison remote hash et hash du input password + salt
|
// Comparaison remote hash et hash du input password + salt
|
||||||
// dump($remoteHashedPassword, $plaintextPassword, $remoteSalt, password_verify($plaintextPassword, $remoteHashedPassword));
|
|
||||||
$this->passwordHasher->verify($remoteHashedPassword, $plaintextPassword, $remoteSalt);
|
$this->passwordHasher->verify($remoteHashedPassword, $plaintextPassword, $remoteSalt);
|
||||||
// if ($this->passwordHasher->needsRehash($remoteHashedPassword)) {
|
|
||||||
// $hash = $this->passwordHasher->hash($plaintextPassword);
|
|
||||||
// $this->sqlLoginService->updatePassword($login, $hash, null);
|
|
||||||
// }
|
|
||||||
$attributes = $this->sqlLoginService->fetchDatas($login);
|
$attributes = $this->sqlLoginService->fetchDatas($login);
|
||||||
$user = new User($login, $remoteHashedPassword, $attributes, $rememberMe);
|
$user = new User($login, $remoteHashedPassword, $attributes, $rememberMe);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue