Resolve "evaluate uv"

This commit is contained in:
2025-04-21 17:39:20 +02:00
parent bb049441b4
commit 934ef826c9
366 changed files with 849 additions and 160 deletions
+2 -3
View File
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
import hmac
import random
import string
import hashlib
@@ -29,7 +28,7 @@ class UserDAO:
def make_pw_hash(self, pw,salt=None):
if salt == None:
salt = self.make_salt();
salt = self.make_salt()
return hashlib.sha256(pw + salt).hexdigest()+","+ salt
# Validates a user login. Returns user record or None
@@ -68,7 +67,7 @@ class UserDAO:
except pymongo.errors.OperationFailure:
print("oops, mongo error")
return False
except pymongo.errors.DuplicateKeyError as e:
except pymongo.errors.DuplicateKeyError:
print("oops, username is already taken")
return False