Spaces:
Running
Running
Commit ·
a2279cd
1
Parent(s): 2760da5
chore: update email domain from cuatrobeauty to cuatrolabs
Browse files- Update superadmin test credentials email to superadmin@cuatrolabs.com
- Update admin test credentials email to admin@cuatrolabs.com
- Update manager test credentials email to manager@cuatrolabs.com
- Update database verification query to use new superadmin email domain
- Update initial user creation script with new email domain for all default users
- Update logged credentials output to reflect new email domain
- Align all system emails with cuatrolabs domain branding
- app/auth/controllers/router.py +3 -3
- app/main.py +1 -1
- create_initial_users.py +6 -6
app/auth/controllers/router.py
CHANGED
|
@@ -310,19 +310,19 @@ async def test_login():
|
|
| 310 |
"test_credentials": [
|
| 311 |
{
|
| 312 |
"type": "Super Admin",
|
| 313 |
-
"email": "superadmin@
|
| 314 |
"password": "SuperAdmin@123",
|
| 315 |
"description": "Full system access"
|
| 316 |
},
|
| 317 |
{
|
| 318 |
"type": "Company Admin",
|
| 319 |
-
"email": "admin@
|
| 320 |
"password": "CompanyAdmin@123",
|
| 321 |
"description": "Company-wide management"
|
| 322 |
},
|
| 323 |
{
|
| 324 |
"type": "Manager",
|
| 325 |
-
"email": "manager@
|
| 326 |
"password": "Manager@123",
|
| 327 |
"description": "Team management"
|
| 328 |
}
|
|
|
|
| 310 |
"test_credentials": [
|
| 311 |
{
|
| 312 |
"type": "Super Admin",
|
| 313 |
+
"email": "superadmin@cuatrolabs.com",
|
| 314 |
"password": "SuperAdmin@123",
|
| 315 |
"description": "Full system access"
|
| 316 |
},
|
| 317 |
{
|
| 318 |
"type": "Company Admin",
|
| 319 |
+
"email": "admin@cuatrolabs.com",
|
| 320 |
"password": "CompanyAdmin@123",
|
| 321 |
"description": "Company-wide management"
|
| 322 |
},
|
| 323 |
{
|
| 324 |
"type": "Manager",
|
| 325 |
+
"email": "manager@cuatrolabs.com",
|
| 326 |
"password": "Manager@123",
|
| 327 |
"description": "Team management"
|
| 328 |
}
|
app/main.py
CHANGED
|
@@ -86,7 +86,7 @@ async def check_db_status():
|
|
| 86 |
|
| 87 |
# Get sample user to verify
|
| 88 |
sample_user = await db[AUTH_SYSTEM_USERS_COLLECTION].find_one(
|
| 89 |
-
{"email": "superadmin@
|
| 90 |
{"email": 1, "username": 1, "role": 1, "status": 1}
|
| 91 |
)
|
| 92 |
|
|
|
|
| 86 |
|
| 87 |
# Get sample user to verify
|
| 88 |
sample_user = await db[AUTH_SYSTEM_USERS_COLLECTION].find_one(
|
| 89 |
+
{"email": "superadmin@cuatrolabs.com"},
|
| 90 |
{"email": 1, "username": 1, "role": 1, "status": 1}
|
| 91 |
)
|
| 92 |
|
create_initial_users.py
CHANGED
|
@@ -26,7 +26,7 @@ async def create_initial_users():
|
|
| 26 |
{
|
| 27 |
"user_id": "usr_superadmin_001",
|
| 28 |
"username": "superadmin",
|
| 29 |
-
"email": "superadmin@
|
| 30 |
"password_hash": pwd_context.hash("SuperAdmin@123"),
|
| 31 |
"first_name": "Super",
|
| 32 |
"last_name": "Admin",
|
|
@@ -53,7 +53,7 @@ async def create_initial_users():
|
|
| 53 |
{
|
| 54 |
"user_id": "usr_admin_001",
|
| 55 |
"username": "admin",
|
| 56 |
-
"email": "admin@
|
| 57 |
"password_hash": pwd_context.hash("CompanyAdmin@123"),
|
| 58 |
"first_name": "Company",
|
| 59 |
"last_name": "Admin",
|
|
@@ -79,7 +79,7 @@ async def create_initial_users():
|
|
| 79 |
{
|
| 80 |
"user_id": "usr_manager_001",
|
| 81 |
"username": "manager",
|
| 82 |
-
"email": "manager@
|
| 83 |
"password_hash": pwd_context.hash("Manager@123"),
|
| 84 |
"first_name": "Team",
|
| 85 |
"last_name": "Manager",
|
|
@@ -111,9 +111,9 @@ async def create_initial_users():
|
|
| 111 |
logger.info(f"Created user: {user['email']} (password: see script)")
|
| 112 |
|
| 113 |
logger.info("\n=== Initial Users Created ===")
|
| 114 |
-
logger.info("1. superadmin@
|
| 115 |
-
logger.info("2. admin@
|
| 116 |
-
logger.info("3. manager@
|
| 117 |
logger.info("=============================\n")
|
| 118 |
|
| 119 |
except Exception as e:
|
|
|
|
| 26 |
{
|
| 27 |
"user_id": "usr_superadmin_001",
|
| 28 |
"username": "superadmin",
|
| 29 |
+
"email": "superadmin@cuatrolabs.com",
|
| 30 |
"password_hash": pwd_context.hash("SuperAdmin@123"),
|
| 31 |
"first_name": "Super",
|
| 32 |
"last_name": "Admin",
|
|
|
|
| 53 |
{
|
| 54 |
"user_id": "usr_admin_001",
|
| 55 |
"username": "admin",
|
| 56 |
+
"email": "admin@cuatrolabs.com",
|
| 57 |
"password_hash": pwd_context.hash("CompanyAdmin@123"),
|
| 58 |
"first_name": "Company",
|
| 59 |
"last_name": "Admin",
|
|
|
|
| 79 |
{
|
| 80 |
"user_id": "usr_manager_001",
|
| 81 |
"username": "manager",
|
| 82 |
+
"email": "manager@cuatrolabs.com",
|
| 83 |
"password_hash": pwd_context.hash("Manager@123"),
|
| 84 |
"first_name": "Team",
|
| 85 |
"last_name": "Manager",
|
|
|
|
| 111 |
logger.info(f"Created user: {user['email']} (password: see script)")
|
| 112 |
|
| 113 |
logger.info("\n=== Initial Users Created ===")
|
| 114 |
+
logger.info("1. superadmin@cuatrolabs.com / SuperAdmin@123")
|
| 115 |
+
logger.info("2. admin@cuatrolabs.com / CompanyAdmin@123")
|
| 116 |
+
logger.info("3. manager@cuatrolabs.com / Manager@123")
|
| 117 |
logger.info("=============================\n")
|
| 118 |
|
| 119 |
except Exception as e:
|