-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagina registro #72
Pagina registro #72
Conversation
Cambiando mayúscula por minúscula. Borrando comentarios.
El registro está casi listo Solo falta la verificación de contraseña dos veces. Además, añadí un comentario a un console.log(); que me confundió por un rato. Ahora todo está más claro en console.log()! 💻🔍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vamoooo @JLeonN !
Ahora acordate de seguir con el componente global:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Te dejé un comentario, fijate si lo queres hacer.
const btnRegistro = async () => { | ||
if (email == "" || contraseña == "") { | ||
setErrorVacio(true); | ||
} else { | ||
const reg = { | ||
email: email, | ||
password: contraseña, | ||
}; | ||
try { | ||
await registro(reg); | ||
navegar("/"); | ||
|
||
} catch (error) { | ||
// console.log(error.response.status); | ||
setErrorRegistro(true); | ||
} | ||
} | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Al principio de esta funcion hay que poner los errores en false, porque si no al hacer click se quedan los errores anteriores.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esto después explícamelo cuando estemos conectados
{/* <div className="campoLogin"> | ||
<label htmlFor="password">Contraseña:</label> | ||
<input | ||
id="password" | ||
type="password" | ||
name="contrasena" | ||
placeholder="Repita su contraseña" | ||
required | ||
value={contraseña} | ||
onChange={(e) => setContraseña(e.target.value)} | ||
/> | ||
</div> */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esto no lo vas a dejar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esto lo voy hacer ahora
y lo dejo pronto en esta PR
Me falta dar un mensaje que avise al usuario cuando las contraseñas no coinciden. 🛡️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vamoooo!
No description provided.