Better password security for new users

This commit is contained in:
2025-06-04 14:21:12 +02:00
parent 41cdd5ec7f
commit 905a056c87
12 changed files with 166 additions and 57 deletions

View File

@@ -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