Skip to content

Commit f108884

Browse files
fix: smtp auth login
1 parent a86b0f4 commit f108884

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

internal/core/actor.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ type Actor int
44

55
const (
66
ActorAnonymous Actor = iota
7-
ActorUser
87
ActorSystem
98
)

internal/core/context.go

-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ type Context struct {
1616
ctx context.Context
1717
}
1818

19-
func (c Context) WithActor(actor Actor) Context {
20-
c.Actor = actor
21-
return c
22-
}
23-
2419
func (c Context) Context() context.Context {
2520
return c.ctx
2621
}

internal/procs/auth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func HTTPLogin(cc core.Context, username, password string) error {
2626
}
2727

2828
func SMTPLogin(cc core.Context, username, password string) error {
29-
if cc.Config.AuthSMTP.Username == "" && cc.Config.AuthHTTP.Password == "" {
29+
if cc.Config.AuthSMTP.Username == "" && cc.Config.AuthSMTP.Password == "" {
3030
return nil
3131
}
3232

0 commit comments

Comments
 (0)