aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/password.tmpl
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-04-11 10:28:23 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-04-11 10:28:23 +0800
commit8cfa2be4332abdc8bdcadead36d065eab3d2d55e (patch)
tree9fe6d03f5006c3dced1f9d5102f43504fb58e8b5 /templates/user/password.tmpl
parentdb39e58a139ef8581b4b61d2d4a68b4e5324acdf (diff)
parent306aa5bffe7868207ed7b773c1aedbf3f0a659ad (diff)
downloadgitea-8cfa2be4332abdc8bdcadead36d065eab3d2d55e.tar.gz
gitea-8cfa2be4332abdc8bdcadead36d065eab3d2d55e.zip
Merge branch 'dev' of github.com:gogits/gogs into dev
Diffstat (limited to 'templates/user/password.tmpl')
-rw-r--r--templates/user/password.tmpl7
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/user/password.tmpl b/templates/user/password.tmpl
index b2cdc72d9e..cba9cce0c5 100644
--- a/templates/user/password.tmpl
+++ b/templates/user/password.tmpl
@@ -6,9 +6,8 @@
<div id="setting-pwd">
<h4>Password</h4>
<form class="form-horizontal" id="password-form" method="post" action="/user/setting/password">
- {{.CsrfTokenHtml}}
- {{if .IsSuccess}}
- <p class="alert alert-success">Password is changed successfully. You can now sign in via new password.</p>{{else if .HasError}}<p class="alert alert-danger form-error">{{.ErrorMsg}}</p>{{end}}
+ {{.CsrfTokenHtml}}
+ {{template "base/alert" .}}
<div class="form-group">
<label class="col-md-3 control-label">Old Password<strong class="text-danger">*</strong></label>
<div class="col-md-7">
@@ -33,7 +32,7 @@
<div class="form-group">
<div class="col-md-offset-3 col-md-7">
<button type="submit" class="btn btn-primary">Change Password</button>&nbsp;&nbsp;
- <a href="/forget-password/">Forgot your password?</a>
+ <a href="/user/forget_password/">Forgot your password?</a>
</div>
</div>
</form>