Sfoglia il codice sorgente

Merge pull request #135 from kishikawakatsumi/fix-init

Fix authenticationType is always .Default if use init(server: String,…
kishikawa katsumi 10 anni fa
parent
commit
e6fc9087d9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Lib/KeychainAccess/Keychain.swift

+ 1 - 1
Lib/KeychainAccess/Keychain.swift

@@ -287,7 +287,7 @@ public class Keychain {
     }
     
     public convenience init(server: String, protocolType: ProtocolType, authenticationType: AuthenticationType) {
-        self.init(server: NSURL(string: server)!, protocolType: protocolType, authenticationType: .Default)
+        self.init(server: NSURL(string: server)!, protocolType: protocolType, authenticationType: authenticationType)
     }
     
     public convenience init(server: NSURL, protocolType: ProtocolType) {