From c1edd824a093bc8767d0f2d7bc05c8b61d227b9c Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Thu, 8 Oct 2026 21:43:56 -0700 Subject: [PATCH] =?UTF-8?q?Delete=20account=20if=20credentials=20can?= =?UTF-8?q?=E2=80=99t=20be=20saved=20to=20keychain.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/Account/CredentialsAccountView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iOS/Account/CredentialsAccountView.swift b/iOS/Account/CredentialsAccountView.swift index 50a10a872..1e083f331 100644 --- a/iOS/Account/CredentialsAccountView.swift +++ b/iOS/Account/CredentialsAccountView.swift @@ -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 }