mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
GODT-1155: zero out mailbox password during logout
This commit is contained in:
@ -143,6 +143,11 @@ func (s *Credentials) CheckPassword(password string) error {
|
||||
|
||||
func (s *Credentials) Logout() {
|
||||
s.APIToken = ""
|
||||
|
||||
for i := range s.MailboxPassword {
|
||||
s.MailboxPassword[i] = 0
|
||||
}
|
||||
|
||||
s.MailboxPassword = []byte{}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user