Update auth.py
Browse files
auth.py
CHANGED
@@ -41,6 +41,7 @@ class UserCreate(BaseModel):
|
|
41 |
|
42 |
from emailx import send_verification_email, generate_verification_token
|
43 |
|
|
|
44 |
|
45 |
def register(user: UserCreate, db: Session):
|
46 |
# Validate email format and check for existing users
|
|
|
41 |
|
42 |
from emailx import send_verification_email, generate_verification_token
|
43 |
|
44 |
+
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
|
45 |
|
46 |
def register(user: UserCreate, db: Session):
|
47 |
# Validate email format and check for existing users
|