Merge remote-tracking branch 'fix/token' into Develop
This commit is contained in:
@@ -537,7 +537,7 @@ class RemoteAuthToken(Base):
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.auth_token = (hexlify(os.urandom(4))).decode('utf-8')
|
self.auth_token = (hexlify(os.urandom(16))).decode('utf-8')
|
||||||
self.expiration = datetime.now() + timedelta(minutes=10) # 10 min from now
|
self.expiration = datetime.now() + timedelta(minutes=10) # 10 min from now
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user