mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-14 12:29:02 +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()
|
||||
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