mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-19 12:57:56 +00:00
Allow empty password
This commit is contained in:
parent
84b12fd953
commit
fbc04e083b
@ -78,8 +78,12 @@ class Compute:
|
||||
self._auth = None
|
||||
else:
|
||||
self._user = user.strip()
|
||||
self._password = password.strip()
|
||||
self._auth = aiohttp.BasicAuth(self._user, self._password)
|
||||
if password:
|
||||
self._password = password.strip()
|
||||
self._auth = aiohttp.BasicAuth(self._user, self._password)
|
||||
else:
|
||||
self._password = None
|
||||
self._auth = aiohttp.BasicAuth(self._user, "")
|
||||
|
||||
@asyncio.coroutine
|
||||
def update(self, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user