Project

General

Profile

Defect #4043 » autocomplete.diff

Patch for deactivating autocomplete on login - Daniel Felix, 2013-02-05 10:54

View differences:

app/views/account/login.html.erb
5 5
<table>
6 6
<tr>
7 7
    <td align="right"><label for="username"><%=l(:field_login)%>:</label></td>
8
    <td align="left"><%= text_field_tag 'username', params[:username], :tabindex => '1' %></td>
8
    <td align="left"><%= text_field_tag 'username', params[:username], :tabindex => '1' :autocomplete => 'off' %></td>
9 9
</tr>
10 10
<tr>
11 11
    <td align="right"><label for="password"><%=l(:field_password)%>:</label></td>
12
    <td align="left"><%= password_field_tag 'password', nil, :tabindex => '2' %></td>
12
    <td align="left"><%= password_field_tag 'password', nil, :tabindex => '2' :autocomplete => 'off' %></td>
13 13
</tr>
14 14
<% if Setting.openid? %>
15 15
<tr>
(1-1/4)