Sfoglia il codice sorgente

Document that plugins don't have access to passwords

master
Simon Ser 4 anni fa
parent
commit
6bccdd62ce
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: FDE7BE0E88F5E48
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      session.go

+ 3
- 0
session.go Vedi File

@@ -37,6 +37,9 @@ func (err AuthError) Error() string {
} }


// Session is an active user session. It may also hold an IMAP connection. // Session is an active user session. It may also hold an IMAP connection.
//
// The session's password is not available to plugins. Plugins should use the
// session helpers to authenticate outgoing connections, for instance DoSMTP.
type Session struct { type Session struct {
manager *SessionManager manager *SessionManager
username, password string username, password string


Caricamento…
Annulla
Salva