mirror of
https://git.sr.ht/~sircmpwn/tokidoki
synced 2025-12-12 14:17:21 +01:00
auth/imap: close IMAP connection earlier
No need to keep it around after Authenticate succeeds while handling the HTTP request (via next.ServeHTTP).
This commit is contained in:
parent
e349c22ef3
commit
e443b02acf
1 changed files with 1 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ func (prov *IMAPProvider) doAuth(next http.Handler,
|
|||
http.Error(w, "Invalid username or password", http.StatusUnauthorized)
|
||||
return
|
||||
}
|
||||
conn.Close()
|
||||
|
||||
authCtx := AuthContext{
|
||||
AuthMethod: "imap",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue