gate4: set tenant context before audit log in confirm_password_reset

This commit is contained in:
Agent Zero
2026-07-31 11:58:11 +02:00
parent ce0e9ab12a
commit a721db5214
+2
View File
@@ -337,6 +337,8 @@ class AuthService:
# Audit log entry for password reset
try:
from app.core.db import set_tenant_context
await set_tenant_context(db, reset_token.tenant_id)
await log_audit(
db,
reset_token.tenant_id,