generated from nathanwoodburn/python-webserver-template
fix: Send notifications from alternative email addresses
All checks were successful
Build Docker / BuildImage (push) Successful in 30s
All checks were successful
Build Docker / BuildImage (push) Successful in 30s
This commit is contained in:
parent
3b118e6923
commit
415806e852
@ -206,6 +206,9 @@ def get_notification_settings(email):
|
|||||||
if not os.path.exists(notification_file):
|
if not os.path.exists(notification_file):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# Reformat email
|
||||||
|
email = email.split('@')[0] + '@login.hns.au'
|
||||||
|
|
||||||
with open(notification_file, "r") as f:
|
with open(notification_file, "r") as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
if email not in data:
|
if email not in data:
|
||||||
|
Loading…
Reference in New Issue
Block a user