Merge branch 'main' of https://github.com/csc309-winter-2022/team58
This commit is contained in:
commit
329cc7c74f
12
README.md
12
README.md
@ -1 +1,13 @@
|
|||||||
# team58
|
# 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" OR using the username "user" and password "user" as specified in the handout.
|
||||||
|
@ -14,6 +14,8 @@ export default function SignIn() {
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const handleSubmit = (event) => {
|
const handleSubmit = (event) => {
|
||||||
event.preventDefault();
|
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);
|
const data = new FormData(event.currentTarget);
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
if (data.get('username') === "admin" && data.get('password') === "admin") {
|
if (data.get('username') === "admin" && data.get('password') === "admin") {
|
||||||
|
Loading…
Reference in New Issue
Block a user