diff options
author | Marvin Borner | 2019-05-04 17:53:41 +0200 |
---|---|---|
committer | Marvin Borner | 2019-05-04 17:53:41 +0200 |
commit | db002a20f1a2cd0c9b72546936ca5fae089b82c2 (patch) | |
tree | 7c50af6d454198f8f59b5629be68d9ba6bb163f5 | |
parent | 96fe9bdbdf84616643d22ef2158783dbcb41b463 (diff) |
Fixed cookie clearing
Co-authored-by: LarsVomMars <lars@kroenner.eu>
-rw-r--r-- | src/main/kotlin/UserHandler.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/UserHandler.kt b/src/main/kotlin/UserHandler.kt index 16a8e9c..3811fbe 100644 --- a/src/main/kotlin/UserHandler.kt +++ b/src/main/kotlin/UserHandler.kt @@ -65,7 +65,8 @@ class UserHandler { * Logs the user out of the system */ fun logout(ctx: Context) { - ctx.clearCookieStore() // TODO: Fix cookie clearing after logout + ctx.clearCookieStore() + ctx.removeCookie("javalin-cookie-store", "/") ctx.redirect("/") } |