From 340acfa2edde0eba2297749f7531188a35500f9e Mon Sep 17 00:00:00 2001 From: Piyush Sharma Date: Sun, 6 Mar 2022 21:22:50 -0500 Subject: [PATCH 1/3] Updated Readme --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7ef894c..2453592 100644 --- a/README.md +++ b/README.md @@ -1 +1,13 @@ -# team58 \ No newline at end of file +# team58 + +Sports Matcher is an application that allows users to connect with other athletes, schedule sports meets, and rent sports equipment! + +**Built Using** + +It is built using the React framework and the Material UI and React Bootstrap libraries. + +**Instructions** + +To use Sports Matcher, navigate to the sports-matcher directory in the repository and run the commands `npm i` and `npm start` in order. This should launch a localhost window in your browser which shows the homepage. + +From here you can Sign In to your account using the username "admin" and password "admin" as specified in the handout. \ No newline at end of file From c7cd9481f33992b7043921331ab8db164220a563 Mon Sep 17 00:00:00 2001 From: Piyush Sharma Date: Sun, 6 Mar 2022 21:25:18 -0500 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2453592..e4086a9 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,4 @@ It is built using the React framework and the Material UI and React Bootstrap li To use Sports Matcher, navigate to the sports-matcher directory in the repository and run the commands `npm i` and `npm start` in order. This should launch a localhost window in your browser which shows the homepage. -From here you can Sign In to your account using the username "admin" and password "admin" as specified in the handout. \ No newline at end of file +From here you can Sign In to your account using the username "admin" and password "admin" OR using the username "user" and password "user" as specified in the handout. From b717c94e4ead0d3a7ed9a7931379010c4b3ce44e Mon Sep 17 00:00:00 2001 From: Piyush Sharma Date: Sun, 6 Mar 2022 21:35:10 -0500 Subject: [PATCH 3/3] Added comment --- sports-matcher/src/SignIn.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sports-matcher/src/SignIn.js b/sports-matcher/src/SignIn.js index 10b9625..0466472 100644 --- a/sports-matcher/src/SignIn.js +++ b/sports-matcher/src/SignIn.js @@ -14,6 +14,8 @@ export default function SignIn() { const navigate = useNavigate(); const handleSubmit = (event) => { event.preventDefault(); + // For Phase 1, we have hardcoded the usernames and passwords as specified in the handout + // For the upcoming phases, this will be changed to secure authentication const data = new FormData(event.currentTarget); // eslint-disable-next-line no-console if (data.get('username') === "admin" && data.get('password') === "admin") {