Correct username hashing on py3

This commit is contained in:
Adarnof 2017-09-13 00:29:59 -04:00 committed by GitHub
parent 8f58f76001
commit 72305de2d8

View File

@ -264,5 +264,5 @@ class SeatManager:
@staticmethod
def username_hash(username):
m = hashlib.sha1()
m.update(username)
m.update(username.encode('utf-8'))
return m.hexdigest()