Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
[frontend] add ux to warning msg
Browse files Browse the repository at this point in the history
  • Loading branch information
UGisBusy committed Jan 8, 2024
1 parent c866486 commit e89dfbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/user/buyer/security/Password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Password = () => {
)
) {
setWarningText(
'Password should contain at least one of each: uppercase letter, lowercase letter, number and special character. And the length should be between 8 and 72.',
'Password must be at least 8 characters long and contain: [a-z], [A-Z], [0-9], a special character(?=.*@$!%*?&[],.(){}":;\'+-=_~).',
);
setShow(true);
return;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/user/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Signup = () => {
)
) {
setWarningText(
'password should contain at least one of each: uppercase letter, lowercase letter, number and special character\n',
'Password must be at least 8 characters long and contain: [a-z], [A-Z], [0-9], a special character(?=.*@$!%*?&[],.(){}":;\'+-=_~).',
);
setShow(true);
return;
Expand Down

0 comments on commit e89dfbc

Please sign in to comment.