summaryrefslogtreecommitdiffstats
path: root/templates/user/password.tmpl
diff options
context:
space:
mode:
authorskyblue <ssx205@gmail.com>2014-03-23 22:40:35 +0800
committerskyblue <ssx205@gmail.com>2014-03-23 22:40:35 +0800
commit4bac3616055110da6f060e98174bc2381ef91286 (patch)
tree6fc09df1b6bef1a73fac40771702ae5f4f71f1d4 /templates/user/password.tmpl
parentb9302749ddc0e0a10911a83bf80e165b792c8c1e (diff)
parentf7f175a0793a53f3c50d20d89e324a610f94c442 (diff)
downloadgitea-4bac3616055110da6f060e98174bc2381ef91286.tar.gz
gitea-4bac3616055110da6f060e98174bc2381ef91286.zip
merge with branch master
Diffstat (limited to 'templates/user/password.tmpl')
-rw-r--r--templates/user/password.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/user/password.tmpl b/templates/user/password.tmpl
index 2ee178a3fc..936ec4b124 100644
--- a/templates/user/password.tmpl
+++ b/templates/user/password.tmpl
@@ -5,7 +5,9 @@
<div id="gogs-user-setting-container" class="col-md-9">
<div id="gogs-setting-pwd">
<h4>Password</h4>
- <form class="form-horizontal" id="gogs-password-form" method="post" action="/user/setting/password">{{if .IsSuccess}}
+ <form class="form-horizontal" id="gogs-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}}
<div class="form-group">
<label class="col-md-3 control-label">Old Password<strong class="text-danger">*</strong></label>