Skip to content

Commit

Permalink
Update ApiTokenController.php (#456)
Browse files Browse the repository at this point in the history
Return back with 303 to prevent 405 on the next request
  • Loading branch information
parsingeye authored Nov 16, 2020
1 parent bbaa2cb commit f053c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/Inertia/ApiTokenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function update(Request $request, $tokenId)
'abilities' => Jetstream::validPermissions($request->input('permissions', [])),
])->save();

return back();
return back(303);
}

/**
Expand All @@ -76,6 +76,6 @@ public function destroy(Request $request, $tokenId)
{
$request->user()->tokens()->where('id', $tokenId)->delete();

return back();
return back(303);
}
}

0 comments on commit f053c5f

Please sign in to comment.