Gregniuki commited on
Commit
a8317c2
1 Parent(s): 0e4af71

Update auth.py

Browse files
Files changed (1) hide show
  1. auth.py +1 -1
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