Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: password validation
ecmadao89ac63c8edb8
diff --git a/backend/api/v1/auth_service.go b/backend/api/v1/auth_service.goindex 12c1cf3295..309f3caa54 100644--- a/backend/api/v1/auth_service.go+++ b/backend/api/v1/auth_service.go@@ -43,7 +43,7 @@ type CreateUserFunc func(ctx context.Context, user *store.UserMessage, firstEndUvar (invalidUserOrPasswordError = status.Errorf(codes.Unauthenticated, "The email or password is not valid.")- passwordValidRegex = regexp2.MustCompile(`^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$`, 0)+ passwordValidRegex = regexp2.MustCompile(`^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])[\w~@#$%^&*+=|{}:;!.?\"()\[\]-]{8,}`, 0))// AuthService implements the auth service.diff --git a/frontend/src/components/User/Settings/CreateUserDrawer.vue b/frontend/src/components/User/Settings/CreateUserDrawer.vueindex 37ab77d45a..75b0593067 100644--- a/frontend/src/components/User/Settings/CreateUserDrawer.vue+++ b/frontend/src/components/User/Settings/CreateUserDrawer.vue@@ -274,7 +274,10 @@ const checkPassword = () => {state.passwordHint = false;return;}- state.passwordHint = !/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/.test(pwd);+ state.passwordHint =+ !/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])[\w~@#$%^&*+=`|{}:;!.?\"()\[\]-]{8,}/.test(+ pwd+ );return;};