Fix routes for User

master
Julien Rosset 2 months ago
parent 8fef71ef6c
commit 067786a3ea

@ -26,7 +26,7 @@ use Throwable;
/**
* Controllers for user pages
*/
#[Route('/user')]
#[Route('/User')]
class UserController extends AbstractController {
/**
* @var TranslatorInterface The translator service
@ -59,7 +59,7 @@ class UserController extends AbstractController {
*
* @throws TransportExceptionInterface
*/
#[Route('/signUp', name: 'user_signUp')]
#[Route('/SignUp', name: 'user_signUp')]
public function signUp (Request $request, UserPasswordHasherInterface $userPasswordHasher, EntityManagerInterface $entityManager): Response {
if (($response = $this->connectedUserService->checkNotConnected())) {
return $response;
@ -99,7 +99,7 @@ class UserController extends AbstractController {
*
* @return Response The response
*/
#[Route(path: '/signIn', name: 'user_signIn')]
#[Route(path: '/SignIn', name: 'user_signIn')]
public function login (AuthenticationUtils $authenticationUtils): Response {
if (($response = $this->connectedUserService->checkNotConnected())) {
return $response;
@ -123,7 +123,7 @@ class UserController extends AbstractController {
*
* @return void
*/
#[Route(path: '/signOut', name: 'user_signOut')]
#[Route(path: '/SignOut', name: 'user_signOut')]
public function logout (): void {
throw new LogicException('This method can be blank - it will be intercepted by the logout key on your firewall.');
}

@ -161,10 +161,9 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface, Stringa
}
/**
* Removes sensitive data from the user
*
* @see UserInterface
* @inheritDoc
*/
public function eraseCredentials (): void {
// Nothing to do
}
}

Loading…
Cancel
Save