添加重置密码页面的url,并在用户登录页面添加url

This commit is contained in:
sxw 2015-11-29 10:39:19 +08:00
parent 296d1ad751
commit 9da1f3906d
2 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,7 @@ urlpatterns = [
url(r'^account/settings/avatar/$', TemplateView.as_view(template_name="oj/account/avatar.html"), name="avatar_settings_page"),
url(r'^account/sso/$', SSOAPIView.as_view(), name="sso_api"),
url(r'^api/account/userprofile/$', UserProfileAPIView.as_view(), name="userprofile_api"),
url(r'^resetPassword/$', TemplateView.as_view(template_name="oj/account/reset_password.html"), name="reset_password_page")
url(r'^reset_password/$', TemplateView.as_view(template_name="oj/account/reset_password.html"), name="reset_password_page")
]

View File

@ -32,6 +32,7 @@
<div class="form-group">
<button type="submit" class="btn btn-primary">提交</button>
</div>
<a href="/reset_password/">忘记用户名/密码</a><br>
<a href="/register/">还没有帐号?点击注册</a>
</form>