Skip to content

Commit

Permalink
Máximo de caracteres en registro y login
Browse files Browse the repository at this point in the history
  • Loading branch information
uo277310 committed May 6, 2024
1 parent 7021734 commit 5adec10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/src/components/AddUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const AddUser = () => {
label="Username"
value={username}
onChange={(e) => setUsername(e.target.value)}
inputProps={{ maxLength: 20 }}
/>
<TextField
name="password"
Expand All @@ -45,6 +46,7 @@ const AddUser = () => {
type="password"
value={password}
onChange={(e) => setPassword(e.target.value)}
inputProps={{ maxLength: 30 }}
/>
<Button variant="contained" color="primary" onClick={addUser}>
Añadir usuario
Expand Down
2 changes: 2 additions & 0 deletions webapp/src/components/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ const Login = ({ setLogged }) => {
label="Username"
value={username}
onChange={(e) => setUsername(e.target.value)}
inputProps={{ maxLength: 20 }}
/>
<TextField
name = "password"
Expand All @@ -181,6 +182,7 @@ const Login = ({ setLogged }) => {
type="password"
value={password}
onChange={(e) => setPassword(e.target.value)}
inputProps={{ maxLength: 30 }}
/>
<Button variant="contained" color="primary" onClick={loginUser}>
Iniciar sesión
Expand Down

0 comments on commit 5adec10

Please sign in to comment.