forked from Silverfish/proton-bridge
fix(GODT-2387): Ensure vault can be unlocked after factory reset
When performing a factory reset, we don't want to wipe all keychain entries. The only keychain entry should be the vault's passphrase, and we need this to be able to decrypt the vault at next startup (to avoid it being reported as corrupt).
This commit is contained in:
@ -191,6 +191,10 @@ func (vault *Vault) Reset(gluonDir string) error {
|
||||
})
|
||||
}
|
||||
|
||||
func (vault *Vault) Path() string {
|
||||
return vault.path
|
||||
}
|
||||
|
||||
func (vault *Vault) Close() error {
|
||||
vault.refLock.Lock()
|
||||
defer vault.refLock.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user