diff --git a/PayForMe/Services/NetworkService.swift b/PayForMe/Services/NetworkService.swift index 273ffb7..eeb3095 100644 --- a/PayForMe/Services/NetworkService.swift +++ b/PayForMe/Services/NetworkService.swift @@ -182,7 +182,7 @@ class NetworkService { request = URLRequest(url: requestURL) if project.backend == .iHateMoney { - guard let authString = "\(project.name):\(project.password)".data(using: .utf8)?.base64EncodedString() else { fatalError("error generating authString. THIS SHOULD NOT HAPPEN") } + guard let authString = "\(project.token):\(project.password)".data(using: .utf8)?.base64EncodedString() else { fatalError("error generating authString. THIS SHOULD NOT HAPPEN") } request.setValue("Basic \(authString)", forHTTPHeaderField: "Authorization") if !params.isEmpty {