From 3927fdfc47f63bb8be40d78f77bdf80f6e2c57bb Mon Sep 17 00:00:00 2001 From: syk2021 Date: Sat, 11 Nov 2023 13:28:30 -0500 Subject: [PATCH] login fix --- app/newHere1/newHere/ContentView.swift | 2 +- app/newHere1/newHere/LoginView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/newHere1/newHere/ContentView.swift b/app/newHere1/newHere/ContentView.swift index 037cab8..8c288aa 100644 --- a/app/newHere1/newHere/ContentView.swift +++ b/app/newHere1/newHere/ContentView.swift @@ -14,7 +14,7 @@ struct ContentView: View { // testing @State var friendsPresented = true - @State var userId = "653d51478ff5b3c9ace45c26" + //@State var userId = "653d51478ff5b3c9ace45c26" var body: some View { if isAuthenticated { diff --git a/app/newHere1/newHere/LoginView.swift b/app/newHere1/newHere/LoginView.swift index 400f948..1208147 100644 --- a/app/newHere1/newHere/LoginView.swift +++ b/app/newHere1/newHere/LoginView.swift @@ -60,7 +60,7 @@ struct LoginView: View { func LogInUser(){ let requestBody: [String: Any] = [ - "userName": username, + "inputLogin": username, "password": password] guard let jsonData = try? JSONSerialization.data(withJSONObject: requestBody)