Send the right response code for accepted authentication
This commit is contained in:
parent
8d1e83acee
commit
6d497ae0cf
|
@ -549,7 +549,7 @@ func handleAuthInfo(args []string, s *session, c *textproto.Conn) error {
|
|||
}
|
||||
|
||||
if s.backend.Authorized() {
|
||||
return c.PrintfLine("250 authenticated")
|
||||
return c.PrintfLine("281 authenticated")
|
||||
}
|
||||
|
||||
c.PrintfLine("350 Continue")
|
||||
|
@ -560,7 +560,7 @@ func handleAuthInfo(args []string, s *session, c *textproto.Conn) error {
|
|||
}
|
||||
b, err := s.backend.Authenticate(args[1], parts[2])
|
||||
if err == nil {
|
||||
c.PrintfLine("250 authenticated")
|
||||
c.PrintfLine("281 authenticated")
|
||||
if b != nil {
|
||||
s.backend = b
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue