mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-10 00:56:19 +01:00
Correct username hashing on py3
This commit is contained in:
@@ -264,5 +264,5 @@ class SeatManager:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def username_hash(username):
|
def username_hash(username):
|
||||||
m = hashlib.sha1()
|
m = hashlib.sha1()
|
||||||
m.update(username)
|
m.update(username.encode('utf-8'))
|
||||||
return m.hexdigest()
|
return m.hexdigest()
|
||||||
|
|||||||
Reference in New Issue
Block a user