Fix admin email logic
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
509231966b
commit
0f9386c1a5
@ -8,6 +8,10 @@ from app.config import settings
|
||||
from app.models import User
|
||||
from sqlalchemy.orm import Session
|
||||
from app.database.database import get_db
|
||||
import warnings
|
||||
|
||||
# Suppress bcrypt version warnings with passlib
|
||||
warnings.filterwarnings("ignore", message=".*bcrypt.*__about__.*")
|
||||
|
||||
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
|
||||
security = HTTPBearer()
|
||||
|
||||
@ -7,6 +7,5 @@ pydantic>=2.5.0
|
||||
pydantic-settings>=2.1.0
|
||||
python-multipart>=0.0.6
|
||||
python-jose[cryptography]>=3.3.0
|
||||
passlib>=1.7.4
|
||||
bcrypt>=3.2.0,<5.0.0
|
||||
passlib[bcrypt]>=1.7.4
|
||||
email-validator>=2.1.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user