mirror of
https://github.com/thecyberlearn/quantum-ai-v2.git
synced 2026-08-18 21:32:59 +00:00
🔐 Update admin password to strong password
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
402324c03e
commit
8516f23ebc
@ -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")
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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...")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user