fix: own comments

This commit is contained in:
Stavros
2026-05-06 23:39:07 +03:00
parent c6d36673eb
commit e718471ad3
8 changed files with 18 additions and 21 deletions
+2 -3
View File
@@ -34,7 +34,6 @@ type BaseContext struct {
type LocalContext struct {
BaseContext
TOTPPending bool
TOTPEnabled bool
Attributes UserAttributes
}
@@ -223,14 +222,14 @@ func (c *UserContext) GetName() string {
}
}
func (c *UserContext) ProviderName() string {
func (c *UserContext) GetProviderID() string {
switch c.Provider {
case ProviderBasicAuth, ProviderLocal:
return "local"
case ProviderLDAP:
return "ldap"
case ProviderOAuth:
return c.OAuth.DisplayName // compatability
return c.OAuth.ID
default:
return "unknown"
}