generated from nathanwoodburn/python-webserver-template
fix: Refresh emails when user logs in
This commit is contained in:
parent
0ce3f9c629
commit
4e7bc0335c
@ -95,7 +95,7 @@ def login():
|
|||||||
# Get username and token from args
|
# Get username and token from args
|
||||||
token = request.args.get("token")
|
token = request.args.get("token")
|
||||||
# Set token cookie
|
# Set token cookie
|
||||||
response = make_response(redirect("/inbox"))
|
response = make_response(redirect("/refresh"))
|
||||||
response.set_cookie("token", token)
|
response.set_cookie("token", token)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<header style="display: inline;">
|
<header style="display: inline;">
|
||||||
<img src="/favicon.png" style="width:50px;height:50px;">
|
<img src="/favicon.png" style="width:50px;height:50px;">
|
||||||
<h1>HNS Email</h1> <span style="float:right">{{emails.email}} | <a href="/notifications">Notifications</a> | <a
|
<h1>HNS Email</h1> <span style="float:right">{{emails.email}} | <a href="/notifications">Notifications</a> | <a
|
||||||
href="/logout">Logout</a></span>
|
href="/logout">Logout</a></span>
|
||||||
</header>
|
</header>
|
||||||
<br>
|
<br>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<header style="display: inline;">
|
<header style="display: inline;">
|
||||||
<img src="/favicon.png" style="width:50px;height:50px;">
|
<img src="/favicon.png" style="width:50px;height:50px;">
|
||||||
<h1>HNS Email</h1> <span style="float:right">{{email}} | <a href="/inbox">Inbox</a> | <a
|
<h1>HNS Email</h1> <span style="float:right">{{email}} | <a href="/inbox">Inbox</a> | <a
|
||||||
href="/logout">Logout</a></span>
|
href="/logout">Logout</a></span>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user