Fix cookie invalidation when deleting account
This commit is contained in:
parent
ea732325e5
commit
4ffa565626
@ -28,7 +28,7 @@ class SettingsController(
|
|||||||
return result.fold(
|
return result.fold(
|
||||||
{
|
{
|
||||||
when (it) {
|
when (it) {
|
||||||
DeleteError.Unregistered -> Response.redirect("/").invalidateCookie("Authorization")
|
DeleteError.Unregistered -> Response.redirect("/").invalidateCookie("Bearer")
|
||||||
DeleteError.WrongPassword -> Response(Status.OK).html(
|
DeleteError.WrongPassword -> Response(Status.OK).html(
|
||||||
settingView.settings(
|
settingView.settings(
|
||||||
jwtPayload,
|
jwtPayload,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user