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

Method Auth

internal/endpoint/smtp/session.go:105–111  ·  view source on GitHub ↗
(mech string)

Source from the content-addressed store, hash-verified

103}
104
105func (s *Session) Auth(mech string) (sasl.Server, error) {
106 return s.endp.saslAuth.CreateSASL(mech, s.connState.RemoteAddr, func(identity string, data auth.ContextData) error {
107 s.connState.AuthUser = identity
108 s.connState.AuthPassword = data.Password
109 return nil
110 }), nil
111}
112
113func (s *Session) Reset() {
114 s.msgLock.Lock()

Callers 1

Calls 1

CreateSASLMethod · 0.80

Tested by 1