You've already forked Mailu
							
							
				mirror of
				https://github.com/Mailu/Mailu.git
				synced 2025-10-30 23:37:43 +02:00 
			
		
		
		
	Switch to 1000 rounds for tokens (performance)
This commit is contained in:
		| @@ -266,7 +266,7 @@ class Token(Base): | ||||
|         return hash.sha256_crypt.verify(password, self.password) | ||||
|  | ||||
|     def set_password(self, password): | ||||
|         self.password = hash.sha256_crypt.hash(password) | ||||
|         self.password = hash.sha256_crypt.using(rounds=1000).hash(password) | ||||
|  | ||||
|     def __str__(self): | ||||
|         return self.comment | ||||
|   | ||||
		Reference in New Issue
	
	Block a user