MCPcopy Index your code
hub / github.com/tinyauthapp/tinyauth / GetLocalUser

Method GetLocalUser

internal/service/auth_service.go:177–186  ·  view source on GitHub ↗
(username string)

Source from the content-addressed store, hash-verified

175}
176
177func (auth *AuthService) GetLocalUser(username string) config.User {
178 for _, user := range auth.config.Users {
179 if user.Username == username {
180 return user
181 }
182 }
183
184 tlog.App.Warn().Str("username", username).Msg("Local user not found")
185 return config.User{}
186}
187
188func (auth *AuthService) GetLdapUser(userDN string) (config.LdapUser, error) {
189 if !auth.ldap.IsConfigured() {

Callers 5

SearchUserMethod · 0.95
VerifyUserMethod · 0.95
MiddlewareMethod · 0.80
loginHandlerMethod · 0.80
totpHandlerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected