Hamza4100 commited on
Commit
411903d
·
verified ·
1 Parent(s): 1874cef

Update app/services/auth.py

Browse files
Files changed (1) hide show
  1. app/services/auth.py +5 -1
app/services/auth.py CHANGED
@@ -7,7 +7,11 @@ import jwt
7
  from app.config import settings
8
 
9
 
10
- pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
 
 
 
 
11
 
12
 
13
  def hash_password(password: str) -> str:
 
7
  from app.config import settings
8
 
9
 
10
+ pwd_context = CryptContext(
11
+ schemes=["bcrypt"],
12
+ deprecated="auto",
13
+ bcrypt__truncate_error=False # Don't raise error on long passwords
14
+ )
15
 
16
 
17
  def hash_password(password: str) -> str: