Browse Source

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.
pull/5083/head
Andres D 7 years ago committed by jc
parent
commit
8729a60c1d
  1. 2
      templates/user/auth/login.tmpl

2
templates/user/auth/login.tmpl

@ -15,7 +15,7 @@
</div> </div>
<div class="required inline field {{if .Err_Password}}error{{end}}"> <div class="required inline field {{if .Err_Password}}error{{end}}">
<label for="password">{{.i18n.Tr "password"}}</label> <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>
<div class="inline field"> <div class="inline field">
<label></label> <label></label>

Loading…
Cancel
Save