mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 07:21:13 -05:00
fix personalisation
This commit is contained in:
@@ -73,6 +73,14 @@ def dao_create_notification(notification):
|
||||
if not notification.status:
|
||||
notification.status = NOTIFICATION_CREATED
|
||||
|
||||
# notify-api-749 do not write to db
|
||||
# if we have a verify_code we know this is the authentication notification at login time
|
||||
# and not csv (containing PII) provided by the user, so allow verify_code to continue to exist
|
||||
print(f"PERSONALISATION = {notification.personalisation}")
|
||||
if "verify_code" in str(notification.personalisation):
|
||||
pass
|
||||
else:
|
||||
notification.personalisation=""
|
||||
db.session.add(notification)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user