Skip to content
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

Merged
merged 8 commits into from
Apr 20, 2024
Merged

Pagina registro #72

merged 8 commits into from
Apr 20, 2024

Conversation

JLeonN
Copy link
Contributor

@JLeonN JLeonN commented Apr 18, 2024

No description provided.

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()!  💻🔍
@JLeonN JLeonN requested a review from francosang April 18, 2024 01:47
francosang
francosang previously approved these changes Apr 18, 2024
Copy link
Collaborator

@francosang francosang left a 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:

Copy link
Collaborator

@francosang francosang left a 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.

Comment on lines 12 to 29
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);
}
}
};
Copy link
Collaborator

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.

Copy link
Contributor Author

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

Comment on lines 59 to 70
{/* <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> */}
Copy link
Collaborator

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?

Copy link
Contributor Author

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. 🛡️
@JLeonN JLeonN requested a review from francosang April 19, 2024 00:28
Copy link
Collaborator

@francosang francosang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vamoooo!

@JLeonN JLeonN merged commit 65c915e into main Apr 20, 2024
1 check passed
@JLeonN JLeonN deleted the PaginaRegistro branch April 20, 2024 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants