Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: reset service key (#11207)

h3n4l0cc2bbc11079
diff --git a/backend/api/v1/auth_service.go b/backend/api/v1/auth_service.go
index 55fdb2eef2..d2a1e5c921 100644
--- a/backend/api/v1/auth_service.go
+++ b/backend/api/v1/auth_service.go
@@ -385,7 +385,7 @@ func (s *AuthService) UpdateUser(ctx context.Context, request *v1pb.UpdateUserRe
}
}
if passwordPatch != nil {
- passwordHash, err := bcrypt.GenerateFromPassword([]byte(request.User.Password), bcrypt.DefaultCost)
+ passwordHash, err := bcrypt.GenerateFromPassword([]byte((*passwordPatch)), bcrypt.DefaultCost)
if err != nil {
return nil, status.Errorf(codes.Internal, "failed to generate password hash, error: %v", err)
}