Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/bazarr/commit/3bed120a8e2a6482ee6c787bea488f1e624e862e You should set ROOT_URL correctly, otherwise the web may not work correctly.

Convert old auth settings to new

pull/152/head
Halali 7 years ago
parent 3bedabc08c
commit 3bed120a8e

@ -235,9 +235,16 @@ try:
cfg.read_file(f)
except Exception:
pass
cfg.remove_option('auth', 'enabled')
with open(config_file, 'w+') as configfile:
cfg.write(configfile)
if cfg.has_section('auth'):
if cfg.has_option('auth', 'enabled'):
enabled = cfg.getboolean('auth', 'enabled')
if enabled is True:
cfg.set('auth', 'type', 'basic')
elif enabled is False:
cfg.set('auth', 'type', 'basic')
cfg.remove_option('auth', 'enabled')
with open(config_file, 'w+') as configfile:
cfg.write(configfile)
from cork import Cork
import time

Loading…
Cancel
Save