mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-31 04:41:57 +08:00
fix(FE): remove unnecessary complexity from password check (#1904)
Signed-off-by: Marius Kimmina <mar.kimmina@gmail.com>
This commit is contained in:
parent
02898d14f9
commit
1cceab4d5e
@ -6,10 +6,8 @@
|
||||
*/
|
||||
export const isPasswordValid = (value: string): boolean => {
|
||||
// eslint-disable-next-line prefer-regex-literals
|
||||
const pattern = new RegExp(
|
||||
'^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$',
|
||||
);
|
||||
const pattern = new RegExp('^.{8,}$');
|
||||
return pattern.test(value);
|
||||
};
|
||||
|
||||
export const isPasswordNotValidMessage = `Password must a have minimum of 8 characters with at least one lower case, one number ,one upper case and one special character`;
|
||||
export const isPasswordNotValidMessage = `Password must a have minimum of 8 characters`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user