BUGFIX: logout (still bug when on user mgmt pages)

This commit is contained in:
Simon Martens
2025-05-31 23:39:53 +02:00
parent dbed4e7e71
commit 41c055cf4d

View File

@@ -55,7 +55,7 @@ func Logout(e *core.RequestEvent, app *core.App) {
app := *app
session, err := dbmodels.Sessions_Token(app, cookie.Value)
if err == nil {
session.SetStatus(dbmodels.MUSENALM_STATUS_VALUES[1])
session.SetStatus(dbmodels.TOKEN_STATUS_VALUES[1])
if err := app.Save(session); err != nil {
app.Logger().Error("Failed to update session status.", "error", err.Error())
}