Skip to content

Commit 55afd39

Browse files
committed
reword the comment
1 parent 1d34d43 commit 55afd39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/auth/source/smtp/source_authenticate.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ func (source *Source) Authenticate(ctx context.Context, user *user_model.User, u
4141
}
4242

4343
if err := Authenticate(auth, source); err != nil {
44-
// when authentication via smtp fails, wrap the error as ErrInvalidArgument
45-
// with the original textproto.Erro as the cause
44+
// when authentication via smtp fails, wraps ErrInvalidArgument
45+
// with the original textproto.Error as the cause,
4646
// so it will show username or password to the user
47-
// while log the original error so that admin can check the actual reason
47+
// while log the original error so that admin can check.
4848
// see: routers/web/auth/auth.go SiginPost
4949
if tperr, ok := err.(*textproto.Error); ok {
5050
return nil, errors.Join(util.ErrInvalidArgument, tperr)

0 commit comments

Comments
 (0)