- Backend: FastAPI app with all models, services, schemas, routes - Admin Panel: Next.js dashboard with all modules (CRM, POS, repairs, warranties, billing, notifications, etc.) - Ecommerce: storefront (submodule) + product catalog - AI Agents: .agents/ skill library for Antigravity IDE - Docs: architecture, billing, notification gateway markdown - Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
14 lines
631 B
Python
14 lines
631 B
Python
from app.core.database.db_session import engine_core
|
|
from sqlalchemy import text
|
|
from app.utils.Hash_util import hash_password
|
|
|
|
def check():
|
|
pwd_hash = hash_password('Admin$2026Setup')
|
|
with engine_core.connect() as conn:
|
|
conn.execute(text("UPDATE users SET password_hash = :pwd, is_locked = 0, is_active = 1, failed_login_attempts = 0 WHERE email='admin@ifixkart.com'"), {'pwd': pwd_hash})
|
|
conn.commit()
|
|
res = conn.execute(text("SELECT user_id, email, is_locked, is_active FROM users WHERE email='admin@ifixkart.com'")).fetchone()
|
|
print('User:', res)
|
|
|
|
if __name__ == '__main__':
|
|
check()
|