From cdf6d7ee717bec6fb09a6e39228ffd9cb24a88ab Mon Sep 17 00:00:00 2001 From: Bob Sun Date: Mon, 20 Feb 2017 22:24:10 +0800 Subject: [PATCH] fix a bug in authentication method --- pass/Controllers/GitServerSettingTableViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pass/Controllers/GitServerSettingTableViewController.swift b/pass/Controllers/GitServerSettingTableViewController.swift index 64a3f75..4e479dc 100644 --- a/pass/Controllers/GitServerSettingTableViewController.swift +++ b/pass/Controllers/GitServerSettingTableViewController.swift @@ -83,8 +83,9 @@ class GitServerSettingTableViewController: UITableViewController { authenticationMethod = "Password" authSSHKeyCell.accessoryType = .none authPasswordCell.accessoryType = .checkmark + } else { + authenticationMethod = "SSH Key" } - authenticationMethod = "SSH Key" } tableView.deselectRow(at: indexPath, animated: true) }