Fix for magic link with python 3

This commit is contained in:
Ozzieisaacs
2019-05-26 11:31:09 +02:00
parent e6ff2f1d90
commit ed91048a63
6 changed files with 248 additions and 242 deletions
+1 -1
View File
@@ -356,7 +356,7 @@ class RemoteAuthToken(Base):
expiration = Column(DateTime)
def __init__(self):
self.auth_token = hexlify(os.urandom(4))
self.auth_token = (hexlify(os.urandom(4))).decode('utf-8')
self.expiration = datetime.datetime.now() + datetime.timedelta(minutes=10) # 10 min from now
def __repr__(self):