Spaces:
Sleeping
Sleeping
Update api/routes/auth.py
Browse files- api/routes/auth.py +4 -3
api/routes/auth.py
CHANGED
|
@@ -1,12 +1,13 @@
|
|
| 1 |
from fastapi import APIRouter, HTTPException, Depends, status
|
| 2 |
from fastapi.security import OAuth2PasswordRequestForm
|
| 3 |
-
from
|
| 4 |
-
from
|
| 5 |
-
from
|
| 6 |
from datetime import datetime
|
| 7 |
import logging
|
| 8 |
|
| 9 |
|
|
|
|
| 10 |
# Configure logging
|
| 11 |
logging.basicConfig(
|
| 12 |
level=logging.INFO,
|
|
|
|
| 1 |
from fastapi import APIRouter, HTTPException, Depends, status
|
| 2 |
from fastapi.security import OAuth2PasswordRequestForm
|
| 3 |
+
from db.mongo import users_collection
|
| 4 |
+
from core.security import hash_password, verify_password, create_access_token, get_current_user
|
| 5 |
+
from models.schemas import SignupForm, TokenResponse, DoctorCreate
|
| 6 |
from datetime import datetime
|
| 7 |
import logging
|
| 8 |
|
| 9 |
|
| 10 |
+
|
| 11 |
# Configure logging
|
| 12 |
logging.basicConfig(
|
| 13 |
level=logging.INFO,
|