Fix cookie invalidation when deleting account

This commit is contained in:
Hubert Van De Walle 2020-08-22 23:32:19 +02:00
parent ea732325e5
commit 4ffa565626

View File

@ -28,7 +28,7 @@ class SettingsController(
return result.fold(
{
when (it) {
DeleteError.Unregistered -> Response.redirect("/").invalidateCookie("Authorization")
DeleteError.Unregistered -> Response.redirect("/").invalidateCookie("Bearer")
DeleteError.WrongPassword -> Response(Status.OK).html(
settingView.settings(
jwtPayload,