Update manifest

This commit is contained in:
Otto Winter 2018-11-23 21:02:08 +01:00
parent 087f1dc9e4
commit 73e95bc80f
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
include README.md
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.js

View File

@ -46,8 +46,8 @@ class BaseHandler(tornado.web.RequestHandler):
def is_authenticated(self):
has_cookie = self.get_secure_cookie('authenticated') == 'yes'
if ON_HASSIO:
return not USING_HASSIO_AUTH or has_cookie
if USING_HASSIO_AUTH:
return has_cookie
return not USING_PASSWORD or has_cookie