Fix for login issue on MacOS

This commit is contained in:
Ozzieisaacs
2019-07-28 21:29:54 +02:00
parent f59d9d5aa8
commit 73bbffccaa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ def check_auth(username, password):
username=username.encode('windows-1252')
user = ub.session.query(ub.User).filter(func.lower(ub.User.nickname) ==
username.decode('utf-8').lower()).first()
return bool(user and check_password_hash(user.password, password))
return bool(user and check_password_hash(str(user.password), password))
def authenticate():