diff options
author | Andres D <adoreste@users.noreply.github.com> | 2018-03-06 23:20:38 +0100 |
---|---|---|
committer | jc <u@gogs.io> | 2018-03-06 17:20:38 -0500 |
commit | 8729a60c1dd17378df42f622fc189b6d47f384b7 (patch) | |
tree | d54d1561d22a2492e0cdbab2f0ed3ceba84bfcda | |
parent | e4f187cd3d7e7cbc69b1bdf9ec58b4191c67aa7d (diff) |
templates/user/auth/login: disable password autocomplete (#5068)
As gogs can be linked with PAM it is recommended to disable the autocomplete on the password input.
-rw-r--r-- | templates/user/auth/login.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/auth/login.tmpl b/templates/user/auth/login.tmpl index a84b7130..01306971 100644 --- a/templates/user/auth/login.tmpl +++ b/templates/user/auth/login.tmpl @@ -15,7 +15,7 @@ </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" autocomplete="off" value="{{.password}}" required> </div> <div class="inline field"> <label></label> |