Save the session-key as a unicode string in the db

The session-key should be saved as a string, not a byte string.
pull/172/head
Hong Xu 9 years ago
parent e3dedef7ed
commit 21e91efbf9

@ -7,7 +7,7 @@ import binascii
class Preferences:
defaults = [
("session-key", binascii.b2a_hex(os.urandom(24))),
("session-key", binascii.b2a_hex(os.urandom(24)).decode('utf-8')),
]
def __init__(self, db):

Loading…
Cancel
Save