aboutsummaryrefslogtreecommitdiff
path: root/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'handlers.go')
-rw-r--r--handlers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/handlers.go b/handlers.go
index 2ee4c8f..4919d33 100644
--- a/handlers.go
+++ b/handlers.go
@@ -89,7 +89,7 @@ func handleLogin(ectx echo.Context) error {
}
return fmt.Errorf("failed to put connection in pool: %v", err)
}
- ctx.setToken(s.Token)
+ ctx.SetSession(s)
return ctx.Redirect(http.StatusFound, "/mailbox/INBOX")
}
@@ -101,7 +101,7 @@ func handleLogout(ectx echo.Context) error {
ctx := ectx.(*Context)
ctx.Session.Close()
- ctx.setToken("")
+ ctx.SetSession(nil)
return ctx.Redirect(http.StatusFound, "/login")
}