Add an error 401 handler, and make it start counting invalid password guesses instead of 404 errors for rate limiting

This commit is contained in:
Micah Lee 2019-05-20 19:04:50 -07:00
parent e0e7250244
commit c39705f978
7 changed files with 56 additions and 28 deletions

19
share/templates/401.html Normal file
View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>OnionShare: 401 Unauthorized Access</title>
<link href="/static/img/favicon.ico" rel="icon" type="image/x-icon" />
<link rel="stylesheet" rel="subresource" type="text/css" href="/static/css/style.css" media="all">
</head>
<body>
<div class="info-wrapper">
<div class="info">
<p><img class="logo" src="/static/img/logo_large.png" title="OnionShare"></p>
<p class="info-header">401 Unauthorized Access</p>
</div>
</div>
</body>
</html>