mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-02 02:22:25 +00:00
Delete account if credentials can’t be saved to keychain.
This commit is contained in:
1 parent
98d42e05b7
commit
c1edd824a0
1 file changed
+3
@@ -201,6 +201,9 @@ struct CredentialsAccountView: View {
|
||||
do {
|
||||
try store(basicCredentials: basicCredentials, validatedCredentials: validatedCredentials, in: account, endpoint: endpoint)
|
||||
} catch {
|
||||
if self.account == nil {
|
||||
AccountManager.shared.deleteAccount(account)
|
||||
}
|
||||
errorMessage = NSLocalizedString("Keychain error while storing credentials.", comment: "Credentials Error")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user