mirror of
				https://github.com/fastapi-users/fastapi-users.git
				synced 2025-11-03 22:22:06 +08:00 
			
		
		
		
	Enable Argon2 for password hashing
This commit is contained in:
		@ -3,7 +3,7 @@ from typing import Tuple
 | 
				
			|||||||
from passlib import pwd
 | 
					from passlib import pwd
 | 
				
			||||||
from passlib.context import CryptContext
 | 
					from passlib.context import CryptContext
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
 | 
					pwd_context = CryptContext(schemes=["argon2", "bcrypt"], deprecated="auto")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def verify_and_update_password(
 | 
					def verify_and_update_password(
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,5 @@
 | 
				
			|||||||
fastapi >=0.65.2,<0.71.0
 | 
					fastapi >=0.65.2,<0.71.0
 | 
				
			||||||
passlib[bcrypt] ==1.7.4
 | 
					passlib[argon2,bcrypt] ==1.7.4
 | 
				
			||||||
email-validator >=1.1.2,<1.2
 | 
					email-validator >=1.1.2,<1.2
 | 
				
			||||||
pyjwt ==2.3.0
 | 
					pyjwt ==2.3.0
 | 
				
			||||||
python-multipart ==0.0.5
 | 
					python-multipart ==0.0.5
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user