Save the session-key as a unicode string in the db
The session-key should be saved as a string, not a byte string.
This commit is contained in:
parent
e3dedef7ed
commit
21e91efbf9
@ -7,7 +7,7 @@ import binascii
|
|||||||
class Preferences:
|
class Preferences:
|
||||||
|
|
||||||
defaults = [
|
defaults = [
|
||||||
("session-key", binascii.b2a_hex(os.urandom(24))),
|
("session-key", binascii.b2a_hex(os.urandom(24)).decode('utf-8')),
|
||||||
]
|
]
|
||||||
|
|
||||||
def __init__(self, db):
|
def __init__(self, db):
|
||||||
|
Loading…
Reference in New Issue
Block a user