This commit is contained in:
2026-01-16 18:16:33 +08:00
parent 9f3c96ce73
commit e53c3c838c
26 changed files with 1473 additions and 386 deletions

View File

@@ -12,7 +12,10 @@ def create_admin_user():
# Check if user exists
user = db.query(User).filter(User.email == email).first()
if user:
print(f"User {email} already exists.")
print(f"User {email} already exists. Updating password...")
user.password_hash = get_password_hash(password)
db.commit()
print(f"Password updated for {email} to: {password}")
return
# Create new admin user