mirror of
https://github.com/smittix/intercept.git
synced 2026-06-29 21:52:08 -07:00
fix(auth): default admin password now matches README (admin:admin)
The default ADMIN_PASSWORD was an empty string, triggering random password generation on first run — contradicting the README which states admin:admin. Additionally, editing config.py after first run had no effect since init_db() only seeded users on an empty table. - Change default ADMIN_PASSWORD from '' to 'admin' - Sync admin credentials from config on every startup so that changes to config.py or env vars take effect without wiping the DB Fixes #186 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -418,7 +418,7 @@ ALERT_WEBHOOK_TIMEOUT = _get_env_int('ALERT_WEBHOOK_TIMEOUT', 5)
|
||||
|
||||
# Admin credentials
|
||||
ADMIN_USERNAME = _get_env('ADMIN_USERNAME', 'admin')
|
||||
ADMIN_PASSWORD = _get_env('ADMIN_PASSWORD', '')
|
||||
ADMIN_PASSWORD = _get_env('ADMIN_PASSWORD', 'admin')
|
||||
|
||||
|
||||
def configure_logging() -> None:
|
||||
|
||||
Reference in New Issue
Block a user