complete SSH Key authentication

This commit is contained in:
Bob Sun 2017-01-31 22:00:50 +08:00
parent 7a3f05701b
commit 62e2a7fe89
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
4 changed files with 15 additions and 5 deletions

View file

@ -16,7 +16,7 @@ class GitServerSettingTableViewController: UITableViewController {
@IBOutlet weak var passwordTextField: UITextField!
@IBOutlet weak var authenticationTableViewCell: UITableViewCell!
var authenticationMethod = "Password"
var authenticationMethod = Defaults[.gitRepositoryAuthenticationMethod]
override func viewDidLoad() {
@ -26,7 +26,7 @@ class GitServerSettingTableViewController: UITableViewController {
}
usernameTextField.text = Defaults[.gitRepositoryUsername]
passwordTextField.text = Defaults[.gitRepositoryPassword]
authenticationTableViewCell.detailTextLabel?.text = Defaults[.gitRepositoryAuthenticationMethod]
authenticationTableViewCell.detailTextLabel?.text = authenticationMethod
}
override func viewDidAppear(_ animated: Bool) {