mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Fix database
This commit is contained in:
1
backend/app/utils/__init__.py
Normal file
1
backend/app/utils/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
"""Utils package"""
|
8
backend/app/utils/security.py
Normal file
8
backend/app/utils/security.py
Normal file
@@ -0,0 +1,8 @@
|
||||
"""Security utilities"""
|
||||
from passlib.context import CryptContext
|
||||
|
||||
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
|
||||
|
||||
def get_password_hash(password: str) -> str:
|
||||
"""Get password hash"""
|
||||
return pwd_context.hash(password)
|
Reference in New Issue
Block a user