Send the right response code for accepted authentication

This commit is contained in:
maride 2023-11-13 14:07:22 +01:00
parent 8d1e83acee
commit 6d497ae0cf
1 changed files with 2 additions and 2 deletions

View File

@ -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
}