π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Fix user logout when the access token is invalid
Smaug673950e26a7e8db1
diff --git a/backend/router/routes/auth.go b/backend/router/routes/auth.goindex e2c093c5..24beee9a 100644--- a/backend/router/routes/auth.go+++ b/backend/router/routes/auth.go@@ -17,6 +17,6 @@ func Auth(app *app.App, router *gin.RouterGroup) {auth.POST("/refresh", utils.WP(authCtrl.RefreshSession))auth.POST("/request-reset", utils.WP(authCtrl.RequestResetPassword))auth.POST("/reset-password", utils.WP(authCtrl.ResetPassword))- auth.POST("/logout", middlewares.Auth(), utils.WP(authCtrl.Logout))+ auth.POST("/logout", utils.WP(authCtrl.Logout))auth.POST("/logout/all", middlewares.Auth(), utils.WP(authCtrl.LogoutAllDevices))}