From d7a65ba689d67ab079753a306632d028dae7376c Mon Sep 17 00:00:00 2001 From: Marius Kimmina <38843153+mariuskimmina@users.noreply.github.com> Date: Wed, 25 Jan 2023 11:40:22 +0100 Subject: [PATCH] chore: remove not needed code comments (#2054) Signed-off-by: Marius Kimmina Signed-off-by: Marius Kimmina Co-authored-by: Vishal Sharma Co-authored-by: Palash Gupta --- pkg/query-service/auth/rbac.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/pkg/query-service/auth/rbac.go b/pkg/query-service/auth/rbac.go index d387a30779..44f65576ed 100644 --- a/pkg/query-service/auth/rbac.go +++ b/pkg/query-service/auth/rbac.go @@ -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 }