MCPcopy Create free account
hub / github.com/foxcpp/maddy / AuthPlain

Method AuthPlain

internal/auth/external/externalauth.go:94–101  ·  view source on GitHub ↗
(username, password string)

Source from the content-addressed store, hash-verified

92}
93
94func (ea *ExternalAuth) AuthPlain(username, password string) error {
95 accountName, ok := auth.CheckDomainAuth(username, ea.perDomain, ea.domains)
96 if !ok {
97 return module.ErrUnknownCredentials
98 }
99
100 return AuthUsingHelper(ea.helperPath, accountName, password)
101}
102
103func init() {
104 modules.Register("auth.external", New)

Callers

nothing calls this directly

Calls 2

CheckDomainAuthFunction · 0.92
AuthUsingHelperFunction · 0.85

Tested by

no test coverage detected