Update: Remove error str
This commit is contained in:
parent
43b267b645
commit
1771c63b36
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ class Users(db.Model):
|
||||||
|
|
||||||
def auth_token(self):
|
def auth_token(self):
|
||||||
try:
|
try:
|
||||||
time = datetime.now().strftime('%Y-%m-%dT%H:%M:%S')
|
time = datetime.now()
|
||||||
payload = {
|
payload = {
|
||||||
'exp': time + timedelta(days=0, seconds=5),
|
'exp': time + timedelta(days=0, seconds=5),
|
||||||
'iat': time,
|
'iat': time,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue