aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/UserHandler.kt3
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("/")
}