From 51c301ec5646844b307b281553d791f350f6dae5 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 29 Oct 2017 15:39:14 +0100 Subject: [PATCH] Switch to 1000 rounds for tokens (performance) --- admin/mailu/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/mailu/models.py b/admin/mailu/models.py index f207fa16..e42978cd 100644 --- a/admin/mailu/models.py +++ b/admin/mailu/models.py @@ -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