Skip to content

Commit

Permalink
changes to registration
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiayk20 committed Nov 4, 2023
1 parent be799b8 commit 7c0e27d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/newHere1/newHere/Registration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ struct RegistrationView: View {
@State private var email: String = ""
@State private var password: String = ""
@State private var confirmPassword: String = ""
@Binding var isRegistered: Bool

var body: some View {
NavigationView {
Expand Down Expand Up @@ -44,7 +45,7 @@ struct RegistrationView: View {
.navigationBarTitle("Registration")
}
}

func registerUser() {
// Implement registration logic
print("User registration logic goes here.")
Expand All @@ -70,7 +71,8 @@ struct RegistrationView: View {
request.httpBody = jsonData
request.setValue("application/json", forHTTPHeaderField: "Content-Type")

URLSession.shared.dataTask(with: request) { data, response, error in }.resume
URLSession.shared.dataTask(with: request) { data, response, error in }.resume()
self.isRegistered = true
}
}

Expand Down

0 comments on commit 7c0e27d

Please sign in to comment.