feat: add super admin user assignment, scoping, and clean email notifications

This commit is contained in:
Atharv1705
2026-10-30 16:07:46 +05:30
parent 1cca347752
commit b7c935df5a
13 changed files with 680 additions and 105 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ async def send_email(to: str, subject: str, body: str) -> bool:
if smtp_password:
smtp_password = smtp_password.replace(" ", "")
mail_from_email = os.getenv("MAIL_FROM") or smtp_user
mail_from_name = os.getenv("MAIL_FROM_NAME", "BookKeepro")
mail_from_name = os.getenv("MAIL_FROM_NAME", "Admin Portal")
smtp_tls = os.getenv("SMTP_TLS", "True").strip().lower() == "true"
smtp_ssl_tls = os.getenv("MAIL_SSL_TLS", "False").strip().lower() == "true"