mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
acces token table
This commit is contained in:
@@ -67,6 +67,7 @@ func CreateSessionToken(
|
||||
session.SetLastAccess(types.NowDateTime())
|
||||
session.SetUserAgent(userAgent)
|
||||
session.SetIP(ipAddress)
|
||||
session.SetStatus(TOKEN_STATUS_VALUES[0]) // Active
|
||||
|
||||
if errSave := app.Save(session); errSave != nil {
|
||||
app.Logger().Error("Failed to save session token record", "error", errSave, "userID", userID)
|
||||
|
||||
Reference in New Issue
Block a user