added validator

This commit is contained in:
2021-05-30 20:30:01 +02:00
parent cc470de716
commit c39ac0d299
9 changed files with 183 additions and 24 deletions

View File

@@ -147,8 +147,8 @@ class AppAuthenticator extends AbstractFormLoginAuthenticator implements Passwor
*/
public function checkCredentials($credentials, UserInterface $user)
{
return true;
//return $this->passwordEncoder->isPasswordValid($user, $credentials['password']);
//return true;
return $this->passwordEncoder->isPasswordValid($user, $credentials['password']);
}
/**
@@ -165,7 +165,7 @@ class AppAuthenticator extends AbstractFormLoginAuthenticator implements Passwor
return new RedirectResponse($targetPath);
}
return new RedirectResponse($this->urlGenerator->generate('blog'));
return new RedirectResponse($this->urlGenerator->generate('blogs'));
}
protected function getLoginUrl()