Skip to content

Commit

Permalink
Merge pull request #664 from midoks/dev
Browse files Browse the repository at this point in the history
站点页面和计划页面登录检查
  • Loading branch information
midoks authored Dec 22, 2024
2 parents f555f10 + 0e0cc24 commit d540e74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions web/admin/crontab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

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)
Expand Down
1 change: 1 addition & 0 deletions web/admin/site/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

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')

Expand Down
2 changes: 1 addition & 1 deletion web/utils/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -2391,7 +2391,7 @@ def createAcmeDns(self, site_name, domains, email, dnspai, wildcard_domain, forc
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>'
Expand Down

0 comments on commit d540e74

Please sign in to comment.