HTTP login form goes to original requested page

This commit is contained in:
Paulus Schoutsen 2013-11-01 11:38:50 -07:00
parent 92f0cb20ff
commit 63a1dfc64f

View File

@ -240,11 +240,11 @@ class RequestHandler(BaseHTTPRequestHandler):
"<html>" "<html>"
"<head><title>Home Assistant</title></head>" "<head><title>Home Assistant</title></head>"
"<body>" "<body>"
"<form action='/' method='GET'>" "<form action='{}' method='GET'>"
"API password: <input name='api_password' />" "API password: <input name='api_password' />"
"<input type='submit' value='submit' />" "<input type='submit' value='submit' />"
"</form>" "</form>"
"</body></html>")) "</body></html>").format(self.path))
return False return False