Compare commits
No commits in common. "81ea634b3ade287b173201f2a5c0406bc3c55368" and "42fff36545032792c4223b0e834a5dc23d121845" have entirely different histories.
81ea634b3a
...
42fff36545
@ -47,6 +47,7 @@ class Authetication:
|
||||
|
||||
for user in data['user']:
|
||||
if username == user['username']:
|
||||
b64pwd = b64encode(SHA256.new(password.encode('utf-8')).digest())
|
||||
try:
|
||||
b64pwd = b64encode(SHA256.new(password.encode('utf-8')).digest())
|
||||
bcrypt_check(b64pwd, user['password'].encode('utf-8'))
|
||||
|
Loading…
Reference in New Issue
Block a user