1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

Починка админки3

This commit is contained in:
MoonTestUse1
2024-12-31 02:57:36 +06:00
parent a3b9a995f8
commit 2cc5550bfb

View File

@@ -11,13 +11,13 @@ from app.models.employee import EmployeeCreate
def init_db():
db = SessionLocal()
try:
# Create default employee
# Create default employee with valid password (min 6 chars)
employee = EmployeeCreate(
first_name="Сотрудник",
last_name="Лесников",
department="general",
office="101",
password="1111"
password="111111" # Changed to meet 6 character minimum
)
existing = employees.get_employee_by_lastname(db, employee.last_name)