refactor: remove useless session struct abstraction

This commit is contained in:
Stavros
2026-01-09 22:43:30 +02:00
parent 98c0d7be24
commit 467c580ec4
5 changed files with 16 additions and 26 deletions

View File

@@ -127,18 +127,6 @@ type UserSearch struct {
Type string // local, ldap or unknown
}
type SessionCookie struct {
UUID string
Username string
Name string
Email string
Provider string
TotpPending bool
OAuthGroups string
OAuthName string
OAuthSub string
}
type UserContext struct {
Username string
Name string
@@ -151,6 +139,7 @@ type UserContext struct {
TotpEnabled bool
OAuthName string
OAuthSub string
LdapGroups string
}
// API responses and queries