(username, password string)
| 92 | } |
| 93 | |
| 94 | func (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 | |
| 103 | func init() { |
| 104 | modules.Register("auth.external", New) |
nothing calls this directly
no test coverage detected