From a2833cf27688b1d6b36cbb7e76408d3538fa081b Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 10 Jun 2015 23:14:18 +0200 Subject: [PATCH] Turn on / off authentication --- gns3server/web/route.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gns3server/web/route.py b/gns3server/web/route.py index 8cf70b0b..92b28bd8 100644 --- a/gns3server/web/route.py +++ b/gns3server/web/route.py @@ -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()