Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
Last active March 2, 2026 19:51
Show Gist options
  • Select an option

  • Save codigoconjuan/d8a2850f6af19be981b8b68010e6a87b to your computer and use it in GitHub Desktop.

Select an option

Save codigoconjuan/d8a2850f6af19be981b8b68010e6a87b to your computer and use it in GitHub Desktop.
Permitirle al Usuario Cambiar su Contraseña
"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