mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-21 17:46:48 +00:00
GODT-1657: More stable sync, with some tests
This commit is contained in:
@ -138,3 +138,12 @@ func (user *User) SetEventID(eventID string) error {
|
||||
data.EventID = eventID
|
||||
})
|
||||
}
|
||||
|
||||
// Clear clears the user's auth secrets.
|
||||
func (user *User) Clear() error {
|
||||
return user.vault.modUser(user.userID, func(data *UserData) {
|
||||
data.AuthUID = ""
|
||||
data.AuthRef = ""
|
||||
data.KeyPass = nil
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user