feature1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user