From 9ec2e73765af3a558f710db252c0cf3e6043dfd7 Mon Sep 17 00:00:00 2001 From: dlexeyn Date: Tue, 19 Nov 2024 16:45:59 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D1=85=D0=B5=D1=88=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=B0=D1=80=D0=BE=D0=BB=D0=B5=D0=B9?= =?UTF-8?q?=20=D0=B8=D0=BD=D0=B8=D1=86=D0=B8=D0=B0=D0=BB=D0=B8=D0=B7=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=BD=D1=8B=D1=85=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D0=B5?= =?UTF-8?q?=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/init_users.py | 9 +++++---- .../src/src/components/bars/StaticSidebarComponent.vue | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/backend/init_users.py b/backend/init_users.py index a05e3e6..2fc3692 100644 --- a/backend/init_users.py +++ b/backend/init_users.py @@ -1,5 +1,6 @@ from dao.user import create_user, find_user_by_email from schemas.user import UserCreateSchema, Role +from utils.password import get_password_hash async def create_users(): @@ -8,7 +9,7 @@ async def create_users(): lastname='Петров', middlename='Александрович', email='ivan.petrov@example.com', - password='admin123', + password=get_password_hash('admin123'), role=Role.admin ) @@ -17,7 +18,7 @@ async def create_users(): lastname='Смирнова', middlename='Ивановна', email='maria.smirnova@example.com', - password='securepassword1', + password=get_password_hash('securepassword1'), role=Role.foreman ) @@ -26,7 +27,7 @@ async def create_users(): lastname='Кузнецов', middlename='Петрович', email='dmitry.kuznetsov@example.com', - password='securepassword2', + password=get_password_hash('securepassword2'), role=Role.worker ) @@ -35,7 +36,7 @@ async def create_users(): lastname='Сидоров', middlename='Леонидович', email='alex.sidorov@example.com', - password='securepassword3', + password=get_password_hash('securepassword3'), role=Role.customer ) diff --git a/frontend/src/src/components/bars/StaticSidebarComponent.vue b/frontend/src/src/components/bars/StaticSidebarComponent.vue index a5bd4e3..2049776 100644 --- a/frontend/src/src/components/bars/StaticSidebarComponent.vue +++ b/frontend/src/src/components/bars/StaticSidebarComponent.vue @@ -1,10 +1,10 @@