diff options
Diffstat (limited to 'worker/imap/connect.go')
-rw-r--r-- | worker/imap/connect.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/worker/imap/connect.go b/worker/imap/connect.go index bfd95d82..35fd9b11 100644 --- a/worker/imap/connect.go +++ b/worker/imap/connect.go @@ -70,10 +70,10 @@ func (w *IMAPWorker) connect() (*client.Client, error) { if w.config.user != nil { username := w.config.user.Username() - password, hasPassword := w.config.user.Password() - if !hasPassword { - // TODO: ask password - } + + // TODO: 2nd parameter false if no password is set. ask for it + // if unset. + password, _ := w.config.user.Password() if w.config.oauthBearer.Enabled { if err := w.config.oauthBearer.Authenticate( |