Other: Safer vault

This commit is contained in:
James Houlahan
2022-10-13 00:08:11 +02:00
parent 593d86f3a7
commit ef2dea89b4
11 changed files with 270 additions and 131 deletions

View File

@ -147,3 +147,8 @@ func (user *User) Clear() error {
data.KeyPass = nil
})
}
// Close closes the user. This allows it to be removed from the vault.
func (user *User) Close() error {
return user.vault.detachUser(user.userID)
}