Skip to content

Commit 371c3f4

Browse files
Merge pull request #75 from InteractionEngineer/fix/#74-ihatemoney-auth-string
#74 use project ID instead of project name in IHateMoney authString. See comment in Pull Request in case of confusion.
2 parents d90d159 + 6b36f20 commit 371c3f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PayForMe/Services/NetworkService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class NetworkService {
181181
request = URLRequest(url: requestURL)
182182

183183
if project.backend == .iHateMoney {
184-
guard let authString = "\(project.name):\(project.password)".data(using: .utf8)?.base64EncodedString() else { fatalError("error generating authString. THIS SHOULD NOT HAPPEN") }
184+
guard let authString = "\(project.token):\(project.password)".data(using: .utf8)?.base64EncodedString() else { fatalError("error generating authString. THIS SHOULD NOT HAPPEN") }
185185
request.setValue("Basic \(authString)", forHTTPHeaderField: "Authorization")
186186

187187
if !params.isEmpty {

0 commit comments

Comments
 (0)