Fix login
This commit is contained in:
parent
ef50a1b7c3
commit
4f119e7a1b
@ -377,7 +377,8 @@ def resource_not_found(e):
|
||||
def handle_unauthorized():
|
||||
temp = login()
|
||||
t = make_response(temp)
|
||||
t.headers['WWW-Authenticate'] = 'Basic realm="Access to the staging site"'
|
||||
if "/get_" in request.path:
|
||||
t.headers["WWW-Authenticate"] = 'Basic realm="Access to the staging site"'
|
||||
return t, 401
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="container w-25 p-3 align-middle" style="margin: auto">
|
||||
<form action="" method="post" style="display: inline">
|
||||
<form action="/login" method="post" style="display: inline">
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<input class="form-control" name="email" id="email" type="email" placeholder="Email">
|
||||
|
Loading…
Reference in New Issue
Block a user