-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
56 additions
and
49 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %}Welcome{% endblock %} | ||
{% block title %}注册成功{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Welcome {{ new_user.first_name }}!</h1> | ||
<p>Your account has been successfully created. Now you can <a href="{% url "login" %}">log in</a>.</p> | ||
<h1>欢迎 {{ new_user.first_name }}!</h1> | ||
<p>账号创建成功. 现在你可以 <a href="{% url "login" %}">登录了</a>.</p> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %}Password reset{% endblock %} | ||
{% block title %}密码重置完成{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Password set</h1> | ||
<p>Your password has been set. You can <a href="{% url "login" %}">log in now</a></p> | ||
<p>密码重置成功. 你可以 <a href="{% url "login" %}">登录</a></p> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %}Reset your password{% endblock %} | ||
{% block title %}重置密码{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Reset your password</h1> | ||
{% if validlink %} | ||
<p>Please enter your new password twice:</p> | ||
<form action="." method="post"> | ||
{{ form.as_p }} | ||
{% csrf_token %} | ||
<p><input type="submit" value="Change my password" /></p> | ||
<p><input type="submit" value="提交新密码" /></p> | ||
</form> | ||
{% else %} | ||
<p>The password reset link was invalid, possibly because it has already been used. Please request a new password reset.</p> | ||
<p>链接已经失效,可重新申请</p> | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %}Reset your password{% endblock %} | ||
{% block title %}重置你的密码{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Reset your password</h1> | ||
<p>We've emailed you instructions for setting your password.</p> | ||
<p>If you don't receive an email, please make sure you've entered the address you registered with.</p> | ||
<h1>重置你的密码</h1> | ||
<p>已经发送重置密码邮件,注意查收</p> | ||
<p>如果没有收到邮件请确认邮箱地址. 或者联系管理员 | ||
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=847644968&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:847644968:52" alt="点击这里给我发消息" title="点击这里给我发消息"/></a> | ||
</p> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Someone asked for password reset for email {{ email }}. Follow the link below: | ||
你的邮箱地址{{ email }}. 请点击链接重置密码: | ||
{{ protocol }}://{{ domain }}{% url "password_reset_confirm" uidb64=uid token=token %} | ||
|
||
Your username, in case you've forgotten: {{ user.get_username }} | ||
你的登录账号是: {{ user.get_username }} |