mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-11 15:32:39 +00:00
Turn on / off authentication
This commit is contained in:
parent
079715bc18
commit
a2833cf276
@ -90,6 +90,9 @@ class Route(object):
|
|||||||
|
|
||||||
:returns: Response if you need to auth the user otherwise None
|
: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()
|
user = server_config.get("user", "").strip()
|
||||||
password = server_config.get("password", "").strip()
|
password = server_config.get("password", "").strip()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user