Update auth.py
Browse files
auth.py
CHANGED
@@ -2,8 +2,8 @@ from fastapi import Depends, HTTPException, Form, status
|
|
2 |
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
|
3 |
from pydantic import BaseModel
|
4 |
from sqlalchemy.orm import Session
|
|
|
5 |
from models import User
|
6 |
-
from database import get_db
|
7 |
import jwt
|
8 |
from passlib.context import CryptContext
|
9 |
from datetime import datetime, timedelta
|
|
|
2 |
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
|
3 |
from pydantic import BaseModel
|
4 |
from sqlalchemy.orm import Session
|
5 |
+
from database import get_db, get_user_by_email # Import database functions
|
6 |
from models import User
|
|
|
7 |
import jwt
|
8 |
from passlib.context import CryptContext
|
9 |
from datetime import datetime, timedelta
|