Try send credentials as json to HA

This commit is contained in:
Jesse Hills 2022-08-08 14:21:10 +12:00
parent baad92515b
commit 153c71f8d3
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A
1 changed files with 1 additions and 1 deletions

View File

@ -823,7 +823,7 @@ class LoginHandler(BaseHandler):
"password": self.get_argument("password", ""),
}
try:
req = requests.post("http://supervisor/auth", headers=headers, data=data)
req = requests.post("http://supervisor/auth", headers=headers, json=data)
if req.status_code == 200:
self.set_secure_cookie("authenticated", cookie_authenticated_yes)
self.redirect("/")