correctly handle login

This commit is contained in:
jannisp 2021-04-23 15:16:06 +02:00
parent d74c283830
commit e209ea73ff
2 changed files with 2 additions and 2 deletions

View file

@ -36,4 +36,4 @@ security:
# Note: Only the *first* access control that matches will be used
access_control:
# - { path: ^/admin, roles: ROLE_ADMIN }
# - { path: ^/profile, roles: ROLE_USER }
- { path: ^(?!/(login|register|reset-password)), roles: ROLE_USER }

View file

@ -96,7 +96,7 @@ class AppAuthenticator extends AbstractFormLoginAuthenticator implements Passwor
return new RedirectResponse($targetPath);
}
return new RedirectResponse($this->urlGenerator->generate('logout'));
return new RedirectResponse($this->urlGenerator->generate('user_page'));
}
protected function getLoginUrl()