Skip to content

Commit

Permalink
Prevent empty API_TOKEN #779
Browse files Browse the repository at this point in the history
  • Loading branch information
jokob-sk committed Nov 18, 2024
1 parent b3d2563 commit ff9be75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/initialise.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ def read_config_file(filename):
replacements = {
r'\bREPORT_TO\b': 'SMTP_REPORT_TO',
r'\bSYNC_api_token\b': 'API_TOKEN',
r'\bAPI_TOKEN=\'\'\b': f'API_TOKEN=\'t_{generate_random_string(20)}',
r'\bREPORT_FROM\b': 'SMTP_REPORT_FROM',
r'\bPIALERT_WEB_PROTECTION\b': 'SETPWD_enable_password',
r'\bPIALERT_WEB_PASSWORD\b': 'SETPWD_password',
Expand Down

0 comments on commit ff9be75

Please sign in to comment.