mirror of https://github.com/esphome/esphome.git
Try send credentials as json to HA
This commit is contained in:
parent
baad92515b
commit
153c71f8d3
|
@ -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("/")
|
||||
|
|
Loading…
Reference in New Issue