Skip to content

Commit

Permalink
添加注册帮助页面
Browse files Browse the repository at this point in the history
  • Loading branch information
Grain-Yu committed Nov 8, 2023
1 parent 7df9be4 commit aa91863
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions archery/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@
SESSION_SAVE_EVERY_REQUEST = True
SESSION_EXPIRE_AT_BROWSER_CLOSE = True # 关闭浏览器,则COOKIE失效

#注册帮助页面的URL
REGISTER_HELP_URL = "https://archerydms.com"

# 该项目本身的mysql数据库地址
DATABASES = {
# "default": {
Expand Down
1 change: 1 addition & 0 deletions common/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ <h4 class="modal-title" id="myModalLabel">注册账号</h4>
</div>
</div>
<div class="modal-footer">
<a href={{ register_help }} class="btn btn-default" role="button"><u>需要帮助</u></a>
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<button id="btnSign" type="submit" class="btn btn-success">注册</button>
</div>
Expand Down
2 changes: 2 additions & 0 deletions common/utils/global_info.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: UTF-8 -*-
from sql.utils.workflow_audit import Audit
from archery import display_version
from archery import settings
from common.config import SysConfig
from sql.models import TwoFactorAuthConfig

Expand Down Expand Up @@ -31,4 +32,5 @@ def global_info(request):
"archery_version": display_version,
"watermark_enabled": watermark_enabled,
"twofa_type": twofa_type,
"register_help": settings.REGISTER_HELP_URL,
}

0 comments on commit aa91863

Please sign in to comment.