summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-07-31 17:25:34 -0400
committerUnknwon <joe2010xtmf@163.com>2014-07-31 17:25:34 -0400
commit7bbf644dd5eaca77c3e8df57419180486bda0fc2 (patch)
tree84033fb9507c4657d74b85dccd5f16595f8517a8 /templates/user
parent3428baa3b57b39f2e010254bffede93e7d3cdf37 (diff)
downloadgitea-7bbf644dd5eaca77c3e8df57419180486bda0fc2.tar.gz
gitea-7bbf644dd5eaca77c3e8df57419180486bda0fc2.zip
Convert captcha, cache, csrf as middlewares
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/signin.tmpl1
-rw-r--r--templates/user/signup.tmpl3
2 files changed, 1 insertions, 3 deletions
diff --git a/templates/user/signin.tmpl b/templates/user/signin.tmpl
index a66dd285b2..8b67dbd86e 100644
--- a/templates/user/signin.tmpl
+++ b/templates/user/signin.tmpl
@@ -2,7 +2,6 @@
{{template "ng/base/header" .}}
<div id="sign-wrapper">
<form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="/user/login" method="post">
- {{.CsrfTokenHtml}}
<div class="panel-header">
<h2>{{.i18n.Tr "sign_in"}}</h2>
</div>
diff --git a/templates/user/signup.tmpl b/templates/user/signup.tmpl
index 5b52850c0f..723314956c 100644
--- a/templates/user/signup.tmpl
+++ b/templates/user/signup.tmpl
@@ -2,7 +2,6 @@
{{template "ng/base/header" .}}
<div id="sign-wrapper">
<form class="form-align form panel panel-radius sign-panel sign-form container" id="sign-up-form" action="/user/sign_up" method="post">
- {{.CsrfTokenHtml}}
<div class="panel-header">
<h2>{{.i18n.Tr "sign_up"}}</h2>
</div>
@@ -29,7 +28,7 @@
</p>
<p class="field">
<label></label>
- {{CreateCaptcha}}
+ {{.Captcha.CreateHtml}}
</p>
<p class="field">
<label class="req" for="captcha">{{.i18n.Tr "captcha"}}</label>