1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 09:37:02 +00:00

smtp: allow empty user & pass during AUTH LOGIN (#225)

This commit is contained in:
James Hillyerd
2021-07-31 10:38:48 -07:00
committed by GitHub
parent 4f9f961cac
commit 2016142747
2 changed files with 9 additions and 13 deletions

View File

@@ -138,9 +138,13 @@ func TestAuth(t *testing.T) {
// LOGIN AUTH
script = []scriptStep{
{"EHLO localhost", 250},
{"AUTH LOGIN", 334},
{"USERNAME", 334},
{"PASSWORD", 235},
{"AUTH LOGIN", 334}, // Test with user/pass present.
{"username", 334},
{"password", 235},
{"RSET", 250},
{"AUTH LOGIN", 334}, // Test with empty user/pass.
{"", 334},
{"", 235},
}
if err := playSession(t, server, script); err != nil {
t.Error(err)