Skip to content

Commit

Permalink
login hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrrsin committed Apr 22, 2024
1 parent c0c91c7 commit 664f460
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions webapp/src/components/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const Login = () => {

<Container component="main" maxWidth="xs" sx={{ marginTop: 4 }}>
<Typography component="h1" variant="h5">
Register
Log in to WIQ
</Typography>
<TextField
name="username"
Expand All @@ -75,15 +75,6 @@ const Login = () => {
value={username}
onChange={(e) => setUsername(e.target.value)}
/>
<TextField
name="email"
type='email'
margin="normal"
fullWidth
label="Email"
value={email}
onChange={(e) => setEmail(e.target.value)}
/>
<TextField
name="password"
margin="normal"
Expand All @@ -93,21 +84,11 @@ const Login = () => {
value={password}
onChange={(e) => setPassword(e.target.value)}
/>
<TextField
name="cpassword"

margin="normal"
fullWidth
label="Confirm Password"
type="password"
value={cpassword}
onChange={(e) => setcPassword(e.target.value)}
/>
<Button variant="contained" color="primary" onClick={addUser}>
Register
<Button variant="contained" color="primary" onClick={loginUser}>
Log In
</Button>
<Typography component="div" align="center" sx={{ marginTop: 2 }}>
<Link to="/login">Already have an account? Log in here.</Link>
<Link to="/login">New around here? Create account.</Link>
</Typography>


Expand Down

0 comments on commit 664f460

Please sign in to comment.