修复网站密码设置

pull/160/head
midoks 3 years ago
parent 1d3ca158cb
commit 4db10d22a7
  1. 4
      class/core/site_api.py

@ -1140,10 +1140,10 @@ class site_api:
if conf.find(rep) == -1: if conf.find(rep) == -1:
rep = '#error_page 404/404.html;' rep = '#error_page 404/404.html;'
data = ''' data = '''
# AUTH_START #AUTH_START
auth_basic "Authorization"; auth_basic "Authorization";
auth_basic_user_file %s; auth_basic_user_file %s;
# AUTH_END''' % (filename,) #AUTH_END''' % (filename,)
conf = conf.replace(rep, rep + data) conf = conf.replace(rep, rep + data)
mw.writeFile(configFile, conf) mw.writeFile(configFile, conf)
# 写密码配置 # 写密码配置

Loading…
Cancel
Save