Fix login

This commit is contained in:
Matthew Welch 2022-01-23 16:02:36 -08:00
parent ef50a1b7c3
commit 4f119e7a1b
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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">