Skip to content

Commit

Permalink
update user info add date
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxcutex committed Jan 31, 2021
1 parent 8efcca2 commit 01ac848
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/user_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,11 @@ def authenticate_user(self):
"name": f"{user.first_name} {user.last_name}",
"picture": "",
"roles": user_roles_list,
"date_time_now": datetime.datetime.utcnow().strftime(
"%Y-%m-%d %H:%M:%S"
),
"date_time_exp": time_limit.strftime("%Y-%m-%d %H:%M:%S"),
"date_time_delta": datetime.timedelta(days=3),
},
"iat": datetime.datetime.utcnow(),
"exp": time_limit,
Expand Down

0 comments on commit 01ac848

Please sign in to comment.