Skip to content

Commit

Permalink
Bug de inicio de sesión arreglado, bug de textbox con texto blanco ar…
Browse files Browse the repository at this point in the history
…reglado, añadido la variable verificado en el login para que no entre en la sesión sin el mail verificado
  • Loading branch information
Adolfopgv committed May 20, 2024
1 parent 45409f7 commit 38091ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/TextBoxWithTextOnTop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function TextBoxWithTextOnTop(props) {
<span className="label-text text-base-content">{props.text}</span>
</label>
<label className="input input-bordered flex items-center gap-2 bg-primary">
<input className="w-[100%]" {...props} />
<input className="w-[100%] text-black" {...props} />
<div>{props.eye}</div>
</label>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/context/userContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function UserContextProvider({ children }) {
setUser(data);
});
}
}, []);
}, [user]);
return (
<UserContext.Provider value={{user, setUser}}>
{children}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/auth/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default function Login() {
email: "",
password: "",
role: "",
verified: "",
});

const [passwordEye, setPasswordEye] = useState(false);
Expand Down

0 comments on commit 38091ac

Please sign in to comment.