mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-22 08:50:09 +00:00
Use Pydantic to validate the server config file.
This commit is contained in:
@ -121,9 +121,9 @@ class Compute:
|
||||
else:
|
||||
self._user = user.strip()
|
||||
if password:
|
||||
self._password = password.strip()
|
||||
self._password = password
|
||||
try:
|
||||
self._auth = aiohttp.BasicAuth(self._user, self._password, "utf-8")
|
||||
self._auth = aiohttp.BasicAuth(self._user, self._password.get_secret_value(), "utf-8")
|
||||
except ValueError as e:
|
||||
log.error(str(e))
|
||||
else:
|
||||
|
Reference in New Issue
Block a user