(security) use POST for logout rather than GET
see https://github.com/pterodactyl/panel/security/advisories/GHSA-m49f-hcxp-6hm6
This commit is contained in:
parent
22a8b2b3a2
commit
45999ba4ee
3 changed files with 18 additions and 5 deletions
|
@ -48,4 +48,4 @@ Route::group(['middleware' => 'guest'], function () {
|
|||
| Endpoint: /auth
|
||||
|
|
||||
*/
|
||||
Route::get('/logout', 'LoginController@logout')->name('auth.logout')->middleware('auth');
|
||||
Route::post('/logout', 'LoginController@logout')->name('auth.logout')->middleware('auth', 'csrf');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue