Skip to content

Commit

Permalink
endpoint/smtp: Drop duplicate RunEarlyChecks call
Browse files Browse the repository at this point in the history
  • Loading branch information
foxcpp committed Jan 28, 2025
1 parent c48332a commit b3ebe4b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/endpoint/smtp/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,6 @@ func (s *Session) AuthMechanisms() []string {
}

func (s *Session) Auth(mech string) (sasl.Server, error) {
// Executed before authentication and session initialization.
if err := s.endp.pipeline.RunEarlyChecks(s.sessionCtx, &s.connState); err != nil {
return nil, s.endp.wrapErr("", true, "AUTH", err)
}

return s.endp.saslAuth.CreateSASL(mech, s.connState.RemoteAddr, func(identity string, data auth.ContextData) error {
s.connState.AuthUser = identity
s.connState.AuthPassword = data.Password
Expand Down

0 comments on commit b3ebe4b

Please sign in to comment.