gate4: set tenant context before audit log in confirm_password_reset
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user