Turn on / off authentication

pull/271/head
Julien Duponchelle 9 years ago
parent 079715bc18
commit a2833cf276

@ -90,6 +90,9 @@ class Route(object):
:returns: Response if you need to auth the user otherwise None
"""
if not server_config.getboolean("auth", False):
return
user = server_config.get("user", "").strip()
password = server_config.get("password", "").strip()

Loading…
Cancel
Save