mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 02:48:59 +08:00
chore: remove not needed code comments (#2054)
Signed-off-by: Marius Kimmina <mar.kimmina@gmail.com> Signed-off-by: Marius Kimmina <mar.kimmina@gmail.com> Co-authored-by: Vishal Sharma <makeavish786@gmail.com> Co-authored-by: Palash Gupta <palashgdev@gmail.com>
This commit is contained in:
parent
05ce03e67d
commit
d7a65ba689
@ -71,22 +71,5 @@ func ValidatePassword(password string) error {
|
||||
if len(password) < minimumPasswordLength {
|
||||
return errors.Errorf("Password should be atleast %d characters.", minimumPasswordLength)
|
||||
}
|
||||
|
||||
// num := `[0-9]{1}`
|
||||
// lower := `[a-z]{1}`
|
||||
// upper := `[A-Z]{1}`
|
||||
// symbol := `[!@#$&*]{1}`
|
||||
// if b, err := regexp.MatchString(num, password); !b || err != nil {
|
||||
// return fmt.Errorf("password should have atleast one number")
|
||||
// }
|
||||
// if b, err := regexp.MatchString(lower, password); !b || err != nil {
|
||||
// return fmt.Errorf("password should have atleast one lower case letter")
|
||||
// }
|
||||
// if b, err := regexp.MatchString(upper, password); !b || err != nil {
|
||||
// return fmt.Errorf("password should have atleast one upper case letter")
|
||||
// }
|
||||
// if b, err := regexp.MatchString(symbol, password); !b || err != nil {
|
||||
// return fmt.Errorf("password should have atleast one special character from !@#$&* ")
|
||||
// }
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user