From 8516f23ebc9ab697fc93c0924fe4190adb2381cc Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 27 Jul 2025 10:21:39 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=90=20Update=20admin=20password=20to?= =?UTF-8?q?=20strong=20password?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace weak 'admin123' with strong password in populate_agents.py - Update check_admin.py and reset_admin.py to use same strong password - Ensure consistent secure password across all admin management commands - Improved security for production admin accounts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- agent_base/management/commands/populate_agents.py | 4 ++-- core/management/commands/check_admin.py | 2 +- core/management/commands/reset_admin.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/agent_base/management/commands/populate_agents.py b/agent_base/management/commands/populate_agents.py index c87984b..551c00b 100644 --- a/agent_base/management/commands/populate_agents.py +++ b/agent_base/management/commands/populate_agents.py @@ -30,11 +30,11 @@ class Command(BaseCommand): User.objects.create_superuser( username='admin', email=admin_email, - password='admin123', + password='P9cKE9G$R%ni#p', first_name='Admin', last_name='User' ) - self.stdout.write("Created superuser: admin@quantumtaskai.com / admin123") + self.stdout.write("Created superuser: admin@quantumtaskai.com / P9cKE9G$R%ni#p") else: superuser_count = User.objects.filter(is_superuser=True).count() self.stdout.write(f"Superuser(s) already exist ({superuser_count} found) - skipping admin creation") diff --git a/core/management/commands/check_admin.py b/core/management/commands/check_admin.py index a792f71..4f1be74 100644 --- a/core/management/commands/check_admin.py +++ b/core/management/commands/check_admin.py @@ -11,7 +11,7 @@ class Command(BaseCommand): # Check both possible admin emails (preferred email first) possible_emails = ['admin@quantumtaskai.com', 'admin@netcop.ai'] username = 'admin' - password = 'QuantumAI2024!' + password = 'P9cKE9G$R%ni#p' user = None found_email = None diff --git a/core/management/commands/reset_admin.py b/core/management/commands/reset_admin.py index aa9f6c9..d9944f6 100644 --- a/core/management/commands/reset_admin.py +++ b/core/management/commands/reset_admin.py @@ -10,7 +10,7 @@ class Command(BaseCommand): def handle(self, *args, **options): email = 'admin@quantumtaskai.com' username = 'admin' - password = 'QuantumAI2024!' + password = 'P9cKE9G$R%ni#p' self.stdout.write("🔄 Resetting admin user...")