Better password security for new users
This commit is contained in:
Binary file not shown.
@@ -131,6 +131,9 @@ def generate_mail_from_notification(notif: Notif) -> Optional[Mail]:
|
||||
if attr in notif.details[obj_name]:
|
||||
filled_body = filled_body.replace(f'{{{{ {key} }}}}', str(notif.details[obj_name][attr]))
|
||||
else:
|
||||
# Special handling for setup_link to ensure it's a proper URL
|
||||
if key == 'setup_link' and value.startswith('http://http//'):
|
||||
value = value.replace('http://http//', 'http://')
|
||||
filled_body = filled_body.replace(f'{{{{ {key} }}}}', str(value))
|
||||
|
||||
# Handle special URL variables
|
||||
|
||||
Reference in New Issue
Block a user