Update auth.py
Browse files
auth.py
CHANGED
@@ -51,6 +51,8 @@ def authenticate_user(db: Session, email: str, password: str):
|
|
51 |
|
52 |
# Check if the provided password is correct (You should verify the password)
|
53 |
if not pwd_context.verify(password, user.hashed_password):
|
|
|
|
|
54 |
raise HTTPException(status_code=400, detail="Incorrect password")
|
55 |
# return None # Incorrect password
|
56 |
|
|
|
51 |
|
52 |
# Check if the provided password is correct (You should verify the password)
|
53 |
if not pwd_context.verify(password, user.hashed_password):
|
54 |
+
print("Stored Password:", user.hashed_password)
|
55 |
+
print("Provided Password:", password)
|
56 |
raise HTTPException(status_code=400, detail="Incorrect password")
|
57 |
# return None # Incorrect password
|
58 |
|