aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/auth/signup.tmpl
diff options
context:
space:
mode:
authorBwko <bouwko@gmail.com>2016-11-29 22:49:06 +0100
committerBwko <bouwko@gmail.com>2016-11-29 22:49:06 +0100
commit1e9730a779409e78ce8df7270cf264ad4f0ec2c4 (patch)
treec473997ea32f5932e2b7c4187a4c619cd160889c /templates/user/auth/signup.tmpl
parentccad2cce32c5bc0b66a525cfbb2b9b67c6cd956b (diff)
downloadgitea-1e9730a779409e78ce8df7270cf264ad4f0ec2c4.tar.gz
gitea-1e9730a779409e78ce8df7270cf264ad4f0ec2c4.zip
Fixes xss, clickjacking & password autocompletion
Diffstat (limited to 'templates/user/auth/signup.tmpl')
-rw-r--r--templates/user/auth/signup.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/user/auth/signup.tmpl b/templates/user/auth/signup.tmpl
index 86c020d6bb..ca98302ed2 100644
--- a/templates/user/auth/signup.tmpl
+++ b/templates/user/auth/signup.tmpl
@@ -22,11 +22,11 @@
</div>
<div class="required inline field {{if .Err_Password}}error{{end}}">
<label for="password">{{.i18n.Tr "password"}}</label>
- <input id="password" name="password" type="password" value="{{.password}}" required>
+ <input id="password" name="password" type="password" value="{{.password}}" autocomplete="off" required>
</div>
<div class="required inline field {{if .Err_Password}}error{{end}}">
<label for="retype">{{.i18n.Tr "re_type"}}</label>
- <input id="retype" name="retype" type="password" value="{{.retype}}" required>
+ <input id="retype" name="retype" type="password" value="{{.retype}}" autocomplete="off" required>
</div>
{{if .EnableCaptcha}}
<div class="inline field">