mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +00:00
feat: add reloadkeys method
This commit is contained in:
@ -63,6 +63,14 @@ func (api *FakePMAPI) Unlock(passphrase []byte) (err error) {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (api *FakePMAPI) ReloadKeys(passphrase []byte) (err error) {
|
||||
if _, err = api.UpdateUser(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
return api.Unlock(passphrase)
|
||||
}
|
||||
|
||||
func (api *FakePMAPI) CurrentUser() (*pmapi.User, error) {
|
||||
return api.UpdateUser()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user