fix: use correct (historical) macOS keychain name

This commit is contained in:
James Houlahan
2021-01-28 16:07:14 +01:00
committed by Jakub
parent d1daa02b35
commit 0c458f709f
5 changed files with 84 additions and 32 deletions

View File

@ -72,11 +72,6 @@ func NewKeychain(s *settings.Settings, keychainName string) (*Keychain, error) {
return newKeychain(helper, hostURL(keychainName)), nil
}
// hostURL uniquely identifies the app's keychain items within the system keychain.
func hostURL(keychainName string) string {
return fmt.Sprintf("protonmail/%v/users", keychainName)
}
func newKeychain(helper credentials.Helper, url string) *Keychain {
return &Keychain{
helper: helper,