mirror of
https://github.com/esphome/esphome.git
synced 2025-02-13 08:28:19 +00:00
Update manifest
This commit is contained in:
parent
087f1dc9e4
commit
73e95bc80f
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user