File tree 3 files changed +1
-15
lines changed
3 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,6 @@ security:
49
49
# always_remember_me: true
50
50
51
51
logout :
52
- # The route name the user can go to in order to logout
53
- path : security_logout
54
52
# The name of the route to redirect to after logging out
55
53
target : homepage
56
54
# Secure the logout against CSRF
Original file line number Diff line number Diff line change @@ -59,16 +59,4 @@ public function login(
59
59
'error ' => $ helper ->getLastAuthenticationError (),
60
60
]);
61
61
}
62
-
63
- /**
64
- * This is the route the user can use to logout.
65
- *
66
- * But, this will never be executed. Symfony will intercept this first
67
- * and handle the logout automatically. See logout in config/packages/security.yaml
68
- */
69
- #[Route('/logout ' , name: 'security_logout ' )]
70
- public function logout (): void
71
- {
72
- throw new \Exception ('This should never be reached! ' );
73
- }
74
62
}
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ public function testChangePassword(): void
104
104
105
105
$ this ->assertResponseRedirects ();
106
106
$ this ->assertStringStartsWith (
107
- '/en/ logout ' ,
107
+ '/logout ' ,
108
108
$ client ->getResponse ()->headers ->get ('Location ' ) ?? '' ,
109
109
'Changing password logout the user. '
110
110
);
You can’t perform that action at this time.
0 commit comments