Skip to content

Commit

Permalink
psw max length
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu committed Mar 3, 2024
1 parent f8cb2bb commit fb6e769
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions projects/app/src/pages/account/components/UpdatePswModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ const UpdatePswModal = ({ onClose }: { onClose: () => void }) => {
{...register('newPsw', {
required: true,
maxLength: {
value: 20,
message: '密码最少 4 位最多 20 位'
value: 60,
message: '密码最少 4 位最多 60 位'
}
})}
></Input>
Expand All @@ -70,8 +70,8 @@ const UpdatePswModal = ({ onClose }: { onClose: () => void }) => {
{...register('confirmPsw', {
required: true,
maxLength: {
value: 20,
message: '密码最少 4 位最多 20 位'
value: 60,
message: '密码最少 4 位最多 60 位'
}
})}
></Input>
Expand Down

0 comments on commit fb6e769

Please sign in to comment.