Skip to content

Commit 3a0681b

Browse files
committed
Issue when editting the user fields, It was required that you mandatory put the password and the new password. If for example you just want to edit the user "is_active" you are enforced to put a new password.
1 parent b64e374 commit 3a0681b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

frontend/src/components/Admin/EditUser.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ const EditUser = ({ user }: EditUserProps) => {
129129
</Field>
130130

131131
<Field
132-
required
133132
invalid={!!errors.password}
134133
errorText={errors.password?.message}
135134
label="Set Password"
@@ -148,7 +147,6 @@ const EditUser = ({ user }: EditUserProps) => {
148147
</Field>
149148

150149
<Field
151-
required
152150
invalid={!!errors.confirm_password}
153151
errorText={errors.confirm_password?.message}
154152
label="Confirm Password"

0 commit comments

Comments
 (0)