mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-15 02:12:55 +01:00
Reset response step in AUTH LOGIN initialization
The addition of `a.respStep = 0` resets the response step counter at the beginning of the AUTH LOGIN process. This ensures that the state starts correctly and avoids potential issues related to residual values from previous authentications.
This commit is contained in:
parent
93752280aa
commit
9d70283af9
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ func (a *loginAuth) Start(server *ServerInfo) (string, []byte, error) {
|
|||
if server.Name != a.host {
|
||||
return "", nil, errors.New("wrong host name")
|
||||
}
|
||||
a.respStep = 0
|
||||
return "LOGIN", nil, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue