added validator
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user