Last active
March 2, 2026 19:51
-
-
Save codigoconjuan/d8a2850f6af19be981b8b68010e6a87b to your computer and use it in GitHub Desktop.
Permitirle al Usuario Cambiar su Contraseña
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use client" | |
| export default function ChangePasswordForm() { | |
| return ( | |
| <> | |
| <Heading level={2} className="mt-10"> | |
| Cambiar Password | |
| </Heading> | |
| <div className="mt-10 p-5 border border-gray-200"> | |
| <Form onSubmit={() => {} }> | |
| <FormLabel htmlFor="currentPassword">Password Actual</FormLabel> | |
| <FormInput id="currentPassword" type="password" placeholder="Escribe tu Password Actual" /> | |
| <FormLabel htmlFor="newPassword">Nuevo Password</FormLabel> | |
| <FormInput id="newPassword" type="password" placeholder="Nuevo Password" /> | |
| <FormLabel htmlFor="passwordConfirmation">Repetir Nuevo Password</FormLabel> | |
| <FormInput id="passwordConfirmation" type="password" placeholder="Repite el Nuevo Password" /> | |
| <div className="flex gap-5 mt-5"> | |
| <FormLabel>Cerrar sesión en todos los dispositivos </FormLabel> | |
| <FormInput id="revokeOtherSessions" type='checkbox' className='accent-orange-500 p-6 size-5' /> | |
| </div> | |
| <FormSubmit value='Cambiar Password' /> | |
| </Form> | |
| </div> | |
| </> | |
| ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment