hotfix(vuln): send-welcome-email

This commit is contained in:
sharath 2025-07-20 16:40:11 +00:00
parent 25ea6e1035
commit b38637d043
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,10 @@ async def send_welcome_email(
request: SendWelcomeEmailRequest, request: SendWelcomeEmailRequest,
_: bool = Depends(verify_admin_api_key) _: bool = Depends(verify_admin_api_key)
): ):
raise HTTPException(
status_code=403,
detail="Forbidden"
)
try: try:
def send_email(): def send_email():