This commit is contained in:
2026-01-25 21:02:45 +01:00
parent 5b868a6cde
commit 01863c1df0
10 changed files with 399 additions and 7 deletions

View File

@@ -43,3 +43,25 @@ async def send_welcome_email(to_email: str, username: str, password: str):
ASF Team
"""
await send_email(to_email, subject, body)
async def send_request_received_email(to_email: str, username: str):
subject = "Access Request Received"
body = f"""
Hello {username},
We have received your request for access to the ASF SSO platform.
An administrator will review your request shortly.
Regards,
ASF Team
"""
await send_email(to_email, subject, body)
async def send_admin_notification_email(username: str):
to_email = "admin@nabd-co.com" # Default admin email
subject = "New Access Request"
body = f"""
A new access request has been submitted by {username}.
Please log in to the admin portal to review it.
"""
await send_email(to_email, subject, body)