Merge pull request #664 from midoks/dev

站点页面和计划页面登录检查
pull/669/head
Mr Chen 5 months ago committed by GitHub
commit d540e7497b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      web/admin/crontab/__init__.py
  2. 1
      web/admin/site/site.py
  3. 2
      web/utils/site.py

@ -20,6 +20,7 @@ import thisdb
blueprint = Blueprint('crontab', __name__, url_prefix='/crontab', template_folder='../../templates')
@blueprint.route('/index', endpoint='index')
@panel_login_required
def index():
name = thisdb.getOption('template', default='default')
return render_template('%s/crontab.html' % name)

@ -22,6 +22,7 @@ import thisdb
blueprint = Blueprint('site', __name__, url_prefix='/site', template_folder='../../templates/default')
@blueprint.route('/index', endpoint='index')
@panel_login_required
def index():
return render_template('site.html')

@ -2391,7 +2391,7 @@ export PATH
src_path = mw.getAcmeDomainDir(d)
src_cert = src_path + '/fullchain.cer'
src_key = src_path + '/' + d + '.key'
# src_cert.replace("\\*", "*")
msg = '签发失败,您尝试申请证书的失败次数已达上限!\
<p>1检查域名是否正确解析到本服务器,或解析还未完全生效</p>\
<p>2如果以上检查都确认没有问题请尝试更换DNS服务商</p>'

Loading…
Cancel
Save