mirror of
https://github.com/esphome/esphome.git
synced 2025-01-05 12:21:43 +01:00
Rename cookie secret
This commit is contained in:
parent
714704f95f
commit
087f1dc9e4
1 changed files with 1 additions and 1 deletions
|
@ -501,7 +501,7 @@ def start_web_server(args):
|
||||||
PASSWORD_DIGEST = hmac.new(args.password).digest()
|
PASSWORD_DIGEST = hmac.new(args.password).digest()
|
||||||
|
|
||||||
if USING_HASSIO_AUTH or USING_PASSWORD:
|
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):
|
if os.path.exists(cookie_secret_path):
|
||||||
with open(cookie_secret_path, 'r') as f:
|
with open(cookie_secret_path, 'r') as f:
|
||||||
COOKIE_SECRET = f.read()
|
COOKIE_SECRET = f.read()
|
||||||
|
|
Loading…
Reference in a new issue