Alejandra
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
5 additions and
0 deletions
-
frontend/src/components/UserSettings/ChangePassword.tsx
-
frontend/src/components/UserSettings/UserInformation.tsx
|
|
@ -71,6 +71,7 @@ const ChangePassword = () => { |
|
|
|
{...register("current_password")} |
|
|
|
placeholder="Password" |
|
|
|
type="password" |
|
|
|
w="auto" |
|
|
|
/> |
|
|
|
{errors.current_password && ( |
|
|
|
<FormErrorMessage> |
|
|
@ -85,6 +86,7 @@ const ChangePassword = () => { |
|
|
|
{...register("new_password", passwordRules())} |
|
|
|
placeholder="Password" |
|
|
|
type="password" |
|
|
|
w="auto" |
|
|
|
/> |
|
|
|
{errors.new_password && ( |
|
|
|
<FormErrorMessage>{errors.new_password.message}</FormErrorMessage> |
|
|
@ -97,6 +99,7 @@ const ChangePassword = () => { |
|
|
|
{...register("confirm_password", confirmPasswordRules(getValues))} |
|
|
|
placeholder="Password" |
|
|
|
type="password" |
|
|
|
w="auto" |
|
|
|
/> |
|
|
|
{errors.confirm_password && ( |
|
|
|
<FormErrorMessage> |
|
|
|
|
|
@ -97,6 +97,7 @@ const UserInformation = () => { |
|
|
|
{...register("full_name", { maxLength: 30 })} |
|
|
|
type="text" |
|
|
|
size="md" |
|
|
|
w="auto" |
|
|
|
/> |
|
|
|
) : ( |
|
|
|
<Text |
|
|
@ -121,6 +122,7 @@ const UserInformation = () => { |
|
|
|
})} |
|
|
|
type="email" |
|
|
|
size="md" |
|
|
|
w="auto" |
|
|
|
/> |
|
|
|
) : ( |
|
|
|
<Text size="md" py={2}> |
|
|
|