mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 12:06:58 +01:00
Update iOS to work with the latest Account API
This commit is contained in:
parent
1ac1144b2d
commit
9f47139011
@ -93,7 +93,7 @@ struct SettingsFeedbinAccountView : View {
|
||||
do {
|
||||
|
||||
do {
|
||||
try workAccount.removeBasicCredentials()
|
||||
try workAccount.removeCredentials()
|
||||
} catch {}
|
||||
try workAccount.storeCredentials(credentials)
|
||||
|
||||
@ -132,7 +132,7 @@ struct SettingsFeedbinAccountView : View {
|
||||
|
||||
init(account: Account) {
|
||||
self.account = account
|
||||
if case .basic(let username, let password) = try? account.retrieveBasicCredentials() {
|
||||
if case .basic(let username, let password) = try? account.retrieveCredentials() {
|
||||
self.email = username
|
||||
self.password = password
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ struct SettingsReaderAPIAccountView : View {
|
||||
do {
|
||||
|
||||
do {
|
||||
try workAccount.removeBasicCredentials()
|
||||
try workAccount.removeCredentials()
|
||||
} catch {}
|
||||
|
||||
workAccount.endpointURL = apiURL
|
||||
@ -149,7 +149,7 @@ struct SettingsReaderAPIAccountView : View {
|
||||
init(accountType: AccountType, account: Account) {
|
||||
self.account = account
|
||||
self.accountType = accountType
|
||||
if case .basic(let username, let password) = try? account.retrieveBasicCredentials() {
|
||||
if case .basic(let username, let password) = try? account.retrieveCredentials() {
|
||||
self.email = username
|
||||
self.password = password
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ class FeedbinAccountViewController: UIViewController {
|
||||
emailTextField.delegate = self
|
||||
passwordTextField.delegate = self
|
||||
|
||||
if let account = account, let credentials = try? account.retrieveBasicCredentials() {
|
||||
if let account = account, let credentials = try? account.retrieveCredentials() {
|
||||
actionButton.setTitle(NSLocalizedString("Update Credentials", comment: "Update Credentials"), for: .normal)
|
||||
if case .basic(let username, let password) = credentials {
|
||||
emailTextField.text = username
|
||||
@ -77,7 +77,7 @@ class FeedbinAccountViewController: UIViewController {
|
||||
do {
|
||||
|
||||
do {
|
||||
try self.account?.removeBasicCredentials()
|
||||
try self.account?.removeCredentials()
|
||||
} catch {}
|
||||
try self.account?.storeCredentials(credentials)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user