fix(GODT-2774): Add context to Authorize in gluon.Connector

Backported from: https://github.com/ProtonMail/gluon/pull/379
This commit is contained in:
Leander Beernaert
2023-07-06 13:28:58 +02:00
parent 454c9e1534
commit 6579cdfc7f
3 changed files with 12 additions and 2 deletions

View File

@ -76,7 +76,7 @@ func newIMAPConnector(user *User, addrID string) *imapConnector {
}
// Authorize returns whether the given username/password combination are valid for this connector.
func (conn *imapConnector) Authorize(username string, password []byte) bool {
func (conn *imapConnector) Authorize(_ context.Context, username string, password []byte) bool {
addrID, err := conn.CheckAuth(username, password)
if err != nil {
return false