password fix

remotes/1725865088694522691/master
Mustafa Yontar 4 years ago
parent a864c83adb
commit 8da4aed715
  1. 4
      models/User.py

@ -125,7 +125,9 @@ class User(Document):
def save(self, *args, **kwargs): def save(self, *args, **kwargs):
if self.union: if self.union:
self.member_no = User.objects.filter(union=self.union).count() self.member_no = User.objects.filter(union=self.union).count()
self.password = generate_password_hash(self.password)
if self.password.find('pbkdf2:') == -1:
self.password = generate_password_hash(self.password)

Loading…
Cancel
Save