{hint}
' + if request.authorization is None else + 'Wrong username or password. Refresh the page to try again.
' + f'{hint}
' + ) + return body, 401, {'WWW-Authenticate': 'Basic'} return wrapperdiff --git a/anonstream/static/style.css b/anonstream/static/style.css index 1c9de7e..d19886b 100644 --- a/anonstream/static/style.css +++ b/anonstream/static/style.css @@ -159,8 +159,8 @@ a { font-variant: all-small-caps; text-decoration: none; color: inherit; - background-color: #753ba8; - border: 2px outset #8a2be2; + background-color: #3674bf; + border: 2px outset #3584e4; } footer { @@ -183,7 +183,7 @@ footer { #info:target ~ #toggle > [href="#info"], #chat:target ~ #toggle > [href="#chat"], #both:target > #toggle > [href="#both"] { - background-color: #9943e9; + background-color: #3065a6; border-style: inset; } diff --git a/anonstream/templates/home.html b/anonstream/templates/home.html index 28f6c2c..6f16d50 100644 --- a/anonstream/templates/home.html +++ b/anonstream/templates/home.html @@ -4,7 +4,7 @@ -
+{hint}
' + if request.authorization is None else + 'Wrong username or password. Refresh the page to try again.
' + f'{hint}
' + ) + return body, 401, {'WWW-Authenticate': 'Basic'} return wrapper