Set autocomplete to off for login form
fixes CWE 525 Signed-off-by: Taylor Silva <tsilva@pivotal.io>
This commit is contained in:
parent
0af59c6a89
commit
50dc9aaf62
|
@ -7,12 +7,12 @@
|
|||
|
||||
<div class="theme-panel">
|
||||
<h2 class="theme-heading">log in to your account</h2>
|
||||
<form method="post" action="{{ .PostURL }}">
|
||||
<form method="post" action="{{ .PostURL }}" autocomplete="off">
|
||||
<div class="theme-form-row">
|
||||
<div class="theme-form-label">
|
||||
<label for="userid">{{ $usernamePrompt }}</label>
|
||||
</div>
|
||||
<input tabindex="1" required id="login" name="login" type="text" class="theme-form-input" placeholder="{{ $usernamePrompt }}" {{ if .Username }} value="{{ .Username }}" {{ else }} autofocus {{ end }}/>
|
||||
<input tabindex="1" required id="login" name="login" type="text" class="theme-form-input" placeholder="{{ $usernamePrompt }}" autocomplete="off"{{ if .Username }} value="{{ .Username }}" {{ else }} autofocus {{ end }}/>
|
||||
</div>
|
||||
<div class="theme-form-row">
|
||||
<div class="theme-form-label">
|
||||
|
|
Loading…
Reference in New Issue