mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-13 09:30:54 +00:00
Allow empty password
This commit is contained in:
parent
84b12fd953
commit
fbc04e083b
@ -78,8 +78,12 @@ class Compute:
|
|||||||
self._auth = None
|
self._auth = None
|
||||||
else:
|
else:
|
||||||
self._user = user.strip()
|
self._user = user.strip()
|
||||||
self._password = password.strip()
|
if password:
|
||||||
self._auth = aiohttp.BasicAuth(self._user, self._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
|
@asyncio.coroutine
|
||||||
def update(self, **kwargs):
|
def update(self, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user