|
1 | 1 | from datetime import timedelta |
2 | 2 | from typing import Annotated, Any |
3 | 3 |
|
| 4 | +from fastapi import APIRouter, Depends, HTTPException |
| 5 | +from fastapi.responses import HTMLResponse |
| 6 | +from fastapi.security import OAuth2PasswordRequestForm |
| 7 | + |
4 | 8 | from app import crud |
5 | 9 | from app.api.deps import CurrentUser, SessionDep, get_current_active_superuser |
6 | 10 | from app.core import security |
7 | 11 | from app.core.config import settings |
8 | 12 | from app.core.security import get_password_hash |
9 | 13 | from app.models import Message, NewPassword, Token, UserPublic |
10 | | -from app.utils import (generate_password_reset_token, |
11 | | - generate_reset_password_email, send_email, |
12 | | - verify_password_reset_token) |
13 | | -from fastapi import APIRouter, Depends, HTTPException |
14 | | -from fastapi.responses import HTMLResponse |
15 | | -from fastapi.security import OAuth2PasswordRequestForm |
| 14 | +from app.utils import ( |
| 15 | + generate_password_reset_token, |
| 16 | + generate_reset_password_email, |
| 17 | + send_email, |
| 18 | + verify_password_reset_token, |
| 19 | +) |
16 | 20 |
|
17 | 21 | router = APIRouter(tags=["login"]) |
18 | 22 |
|
|
0 commit comments