Skip to content

Commit

Permalink
Make the login form accept the correct auto-fill property (chamhayden#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge authored Apr 6, 2023
1 parent 7f8728d commit 5ec1c41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/page/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const SignIn = (props) => {
if (loading) {
return <AppLoad />;
}

return (
<main className={classes.main}>
<CssBaseline />
Expand All @@ -118,7 +118,7 @@ const SignIn = (props) => {
<form className={classes.form}>
<FormControl margin="normal" required fullWidth>
<InputLabel htmlFor="email">zid</InputLabel>
<Input id="email" name="email" autoComplete="email" autoFocus placeholder="z1234567" value={zid} onChange={e => setZid(e.target.value)} />
<Input id="username" name="username" autoComplete="username" autoFocus placeholder="z1234567" value={zid} onChange={e => setZid(e.target.value)} />
</FormControl>
<FormControl margin="normal" required fullWidth>
<InputLabel htmlFor="password">zpass</InputLabel>
Expand Down Expand Up @@ -165,4 +165,4 @@ SignIn.propTypes = {
classes: PropTypes.object.isRequired,
};

export default withStyles(styles)(SignIn);
export default withStyles(styles)(SignIn);

0 comments on commit 5ec1c41

Please sign in to comment.