mirror of
https://github.com/esphome/esphome.git
synced 2025-09-20 20:22:27 +01:00
Update manifest
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
include README.md
|
include README.md
|
||||||
include esphomeyaml/dashboard/templates/index.html
|
include esphomeyaml/dashboard/templates/index.html
|
||||||
|
include esphomeyaml/dashboard/templates/login.html
|
||||||
include esphomeyaml/dashboard/static/materialize-stepper.min.css
|
include esphomeyaml/dashboard/static/materialize-stepper.min.css
|
||||||
include esphomeyaml/dashboard/static/materialize-stepper.min.js
|
include esphomeyaml/dashboard/static/materialize-stepper.min.js
|
||||||
|
@@ -46,8 +46,8 @@ class BaseHandler(tornado.web.RequestHandler):
|
|||||||
def is_authenticated(self):
|
def is_authenticated(self):
|
||||||
has_cookie = self.get_secure_cookie('authenticated') == 'yes'
|
has_cookie = self.get_secure_cookie('authenticated') == 'yes'
|
||||||
|
|
||||||
if ON_HASSIO:
|
if USING_HASSIO_AUTH:
|
||||||
return not USING_HASSIO_AUTH or has_cookie
|
return has_cookie
|
||||||
|
|
||||||
return not USING_PASSWORD or has_cookie
|
return not USING_PASSWORD or has_cookie
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user