Rename cookie secret

This commit is contained in:
Otto Winter 2018-11-23 20:53:02 +01:00
parent 714704f95f
commit 087f1dc9e4
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -501,7 +501,7 @@ def start_web_server(args):
PASSWORD_DIGEST = hmac.new(args.password).digest()
if USING_HASSIO_AUTH or USING_PASSWORD:
cookie_secret_path = os.path.join(CONFIG_DIR, '.esphomeyaml', '.cookie_secret')
cookie_secret_path = os.path.join(CONFIG_DIR, '.esphomeyaml', 'cookie_secret')
if os.path.exists(cookie_secret_path):
with open(cookie_secret_path, 'r') as f:
COOKIE_SECRET = f.read()