Skip to content

Commit

Permalink
No persisting of password in jsonify
Browse files Browse the repository at this point in the history
  • Loading branch information
czechboy0 committed Jan 22, 2016
1 parent 046bec6 commit d323ab1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion XcodeServerSDK.podspec
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "XcodeServerSDK"
s.version = "0.5.5"
s.version = "0.5.6"
s.summary = "Access Xcode Server API with native Swift objects."

s.homepage = "https://github.com/czechboy0/XcodeServerSDK"
Expand Down
5 changes: 0 additions & 5 deletions XcodeServerSDK/XcodeServerConfig.swift
Expand Up @@ -45,7 +45,6 @@ public struct XcodeServerConfig : JSONSerializable {
dict[Keys.Id] = self.id
dict[Keys.Host] = self.host
dict.optionallyAddValueForKey(self.user, key: Keys.User)
dict.optionallyAddValueForKey(self.password, key: Keys.Password)
return dict
}

Expand Down Expand Up @@ -89,10 +88,6 @@ public struct XcodeServerConfig : JSONSerializable {
throw ConfigurationErrors.InvalidSchemeProvided(errMsg)
}

guard user?.isEmpty == password?.isEmpty else {
throw ConfigurationErrors.InvalidCredentialsProvided
}

// validate if host is a valid URL
if url.scheme.isEmpty {
// exted host with https scheme
Expand Down

0 comments on commit d323ab1

Please sign in to comment.