1
0
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:
Julien Duponchelle 2016-05-26 13:32:52 +02:00
parent 84b12fd953
commit fbc04e083b
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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):