mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Removes 1Password
This commit is contained in:
@@ -23,11 +23,6 @@ class ReaderAPIAccountViewController: UITableViewController {
|
||||
@IBOutlet weak var actionButton: UIButton!
|
||||
@IBOutlet weak var footerLabel: UILabel!
|
||||
@IBOutlet weak var signUpButton: UIButton!
|
||||
@IBOutlet weak var onepasswordButton: UIBarButtonItem! {
|
||||
didSet {
|
||||
onepasswordButton.image?.withTintColor(AppAssets.primaryAccentColor)
|
||||
}
|
||||
}
|
||||
|
||||
weak var account: Account?
|
||||
var accountType: AccountType?
|
||||
@@ -269,30 +264,6 @@ class ReaderAPIAccountViewController: UITableViewController {
|
||||
self.present(safari, animated: true, completion: nil)
|
||||
}
|
||||
|
||||
@IBAction func retrievePasswordDetailsFrom1Password(_ sender: Any) {
|
||||
var url: String
|
||||
switch accountType {
|
||||
case .bazQux:
|
||||
url = "bazqux.com"
|
||||
case .inoreader:
|
||||
url = "inoreader.com"
|
||||
case .theOldReader:
|
||||
url = "theoldreader.com"
|
||||
case .freshRSS:
|
||||
url = apiURLTextField.text ?? ""
|
||||
default:
|
||||
url = ""
|
||||
}
|
||||
|
||||
OnePasswordExtension.shared().findLogin(forURLString: url, for: self, sender: sender) { [self] loginDictionary, error in
|
||||
if let loginDictionary = loginDictionary {
|
||||
usernameTextField.text = loginDictionary[AppExtensionUsernameKey] as? String
|
||||
passwordTextField.text = loginDictionary[AppExtensionPasswordKey] as? String
|
||||
actionButton.isEnabled = !(usernameTextField.text?.isEmpty ?? false) && !(passwordTextField.text?.isEmpty ?? false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func apiURL() -> URL? {
|
||||
switch accountType {
|
||||
case .freshRSS:
|
||||
|
||||
Reference in New Issue
Block a user