cosmetic fix
This commit is contained in:
parent
db6747f758
commit
8953f0d103
6 changed files with 9 additions and 13 deletions
|
@ -298,7 +298,7 @@ STAR_EMPTY = ":star_empty:"
|
|||
DEFAULT_PASSWORD = "ab7nsm8didusbaqPgq"
|
||||
|
||||
# Default redirect loaction when access login required view
|
||||
LOGIN_URL = "/users/login/"
|
||||
LOGIN_URL = "/account/login"
|
||||
|
||||
# Admin site root url
|
||||
ADMIN_URL = "tertqX7256n7ej8nbv5cwvsegdse6w7ne5rHd"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<svg height="100%" stroke-miterlimit="10" version="1.1" viewBox="0 0 12800 12306.1" width="100%" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M6665.58 702.124C6684.58 704.116 6749.59 711.092 6810.59 717.068C7510.61 783.8 8240.72 1069.52 8810.89 1499.3C9043.95 1674.21 9345.07 1964.1 9518.15 2180.03C10227.5 3063.76 10534.9 4173.64 10376.3 5279.7C10240.7 6225.75 9773.03 7096.93 9068.27 7718.2C8927.32 7842.26 8728.38 7993.33 8590.41 8083.39L8497.44 8143.42L8550.44 8155.4C8692.45 8188.35 9022.49 8280.22 9178.51 8331.16C10845.7 8868.52 12075.1 9861.05 12564.6 11062.9C12714.7 11431.8 12799.9 11850.8 12800 12223.8C12800 12328.8 0.0415832 12334.7 0.00285795 12233.7C-0.118302 11917.7 59.7467 11565.7 166.627 11253.6C602.138 9977.45 1831.74 8926.98 3563.51 8352.31C3755.49 8288.24 4124.45 8182.1 4228.44 8162.06C4247.44 8158.05 4269.44 8152.04 4276.44 8148.04C4283.44 8144.04 4235.42 8105.06 4146.4 8044.09C3770.3 7790.23 3455.18 7490.36 3186.05 7132.46C3089 7003.5 3000.95 6870.53 2944.91 6771.55C2920.89 6728.56 2878.86 6654.58 2852.85 6607.59C2784.8 6489.61 2690.72 6279.65 2623.65 6100.67C2381.4 5445.77 2316.12 4726.79 2436.85 4022.75C2510.69 3591.72 2678.51 3122.65 2897.36 2733.57C2981.3 2585.54 3146.21 2342.47 3262.16 2197.43C3400.09 2024.38 3702.97 1721.26 3875.92 1583.19C4015.88 1471.14 4261.81 1304.05 4400.78 1224.99C4777.7 1011.85 5189.64 856.69 5610.61 771.528C5860.59 720.432 6020.58 705.371 6335.58 701.25C6497.58 699.188 6646.58 700.131 6665.58 702.124Z" fill="#646b79" fill-rule="nonzero" opacity="1" stroke="none"/>
|
||||
<svg height="100%" stroke-miterlimit="10" version="1.1" viewBox="0 0 12800 12800" width="100%" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M6593.23 2330.42C6607.09 2331.87 6654.53 2336.96 6699.04 2341.32C7209.86 2390.02 7742.62 2598.51 8158.68 2912.13C8328.75 3039.76 8548.47 3251.29 8674.77 3408.86C9192.39 4053.73 9416.72 4863.62 9301 5670.72C9202.03 6361.06 8860.77 6996.77 8346.49 7450.12C8243.64 7540.64 8098.47 7650.89 7997.8 7716.6L7929.95 7760.41L7968.63 7769.15C8072.26 7793.19 8313.09 7860.23 8426.93 7897.4C9643.51 8289.52 10540.6 9013.78 10897.8 9890.75C11007.3 10160 11069.5 10465.7 11069.6 10737.9C11069.6 10775.7 8701.8 12304.1 6400 12306.1C4032.58 12308.1 1729.3 10782.5 1729.29 10745.1C1729.2 10514.5 1772.88 10257.6 1850.88 10029.9C2168.67 9098.71 3065.92 8332.17 4329.62 7912.84C4469.71 7866.08 4738.94 7788.63 4814.82 7774.01C4828.69 7771.08 4844.74 7766.7 4849.84 7763.78C4854.95 7760.86 4819.91 7732.41 4754.95 7687.92C4480.51 7502.68 4250.57 7283.86 4054.18 7022.7C3983.36 6928.59 3919.11 6831.56 3878.22 6759.34C3860.69 6727.97 3830.02 6673.98 3811.04 6639.69C3761.38 6553.61 3692.73 6400.39 3643.79 6269.79C3467.02 5791.9 3419.39 5267.26 3507.48 4753.51C3561.36 4438.98 3683.82 4096.7 3843.52 3812.78C3904.77 3704.76 4025.11 3527.4 4109.71 3421.56C4210.37 3295.28 4431.38 3074.09 4557.58 2973.34C4659.71 2891.58 4839.17 2769.65 4940.58 2711.96C5215.62 2556.43 5516.22 2443.21 5823.4 2381.06C6005.82 2343.78 6122.57 2332.79 6352.42 2329.78C6470.64 2328.28 6579.36 2328.96 6593.23 2330.42Z" fill="#646b79" fill-rule="nonzero" opacity="1" stroke="none"/>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
@ -837,18 +837,13 @@ def user_liked_collection_list(request, user_name):
|
|||
|
||||
|
||||
def profile_anonymous(request, id):
|
||||
login_url = settings.LOGIN_URL + "?next=" + request.get_full_path()
|
||||
try:
|
||||
username = id.split("@")[0]
|
||||
site = id.split("@")[1]
|
||||
return render(
|
||||
request,
|
||||
"users/home_anonymous.html",
|
||||
{
|
||||
"login_url": login_url,
|
||||
"username": username,
|
||||
"site": site,
|
||||
},
|
||||
{"username": username, "site": site},
|
||||
)
|
||||
except Exception:
|
||||
return redirect(login_url)
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="refresh" content="0;URL={{ login_url }}" />
|
||||
<meta http-equiv="refresh"
|
||||
content="0;URL={% url 'users:login' %}?next={{ request.path }}" />
|
||||
<title>{{ site_name }} - {{ username }}@{{ site }}</title>
|
||||
<link rel="alternate"
|
||||
type="application/rss+xml"
|
||||
|
|
|
@ -17,12 +17,12 @@
|
|||
<h4>验证电子邮件</h4>
|
||||
{% if success %}
|
||||
<p>
|
||||
{{ request.user.email }} 验证成功,<a href="{% url 'common:home' %}">点击这里返回首页</a>。
|
||||
{{ user.email }} 验证成功,<a href="{% url 'common:home' %}">点击这里返回首页</a>。
|
||||
</p>
|
||||
{% else %}
|
||||
<p>
|
||||
{{ error }}
|
||||
链接无效或已过期,<a href="{% url 'users:login' %}">点击这里重新登录</a>。
|
||||
<a href="{% url 'users:login' %}">点击这里重新登录</a>。
|
||||
</p>
|
||||
{% endif %}
|
||||
</article>
|
||||
|
|
|
@ -3,7 +3,7 @@ from .views import *
|
|||
|
||||
app_name = "users"
|
||||
urlpatterns = [
|
||||
path("login/", login, name="login"),
|
||||
path("login", login, name="login"),
|
||||
path("login/oauth", OAuth2_login, name="login_oauth"),
|
||||
path("login/email", verify_email, name="login_email"),
|
||||
path("verify_email", verify_email, name="verify_email"),
|
||||
|
|
Loading…
Add table
Reference in a new issue