Merge pull request #2834 from techAPJ/patch-1

trigger "browser password manager" for password reset page
This commit is contained in:
Sam 2014-10-02 16:49:00 +10:00
commit 489078bfcf
1 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,6 @@
<br>
<br>
<a class="btn" href="/"><%= t('password_reset.continue', site_name: SiteSetting.title) %></a>
<%= render partial: 'auto_redirect_home' %>
<% end %>
</p>
<% else %>
@ -36,8 +35,9 @@
<%=form_tag({}, method: :put) do %>
<p>
<input id="user_password" name="password" size="30" type="password" maxlength="<%= User.max_password_length %>">
<label><%= t('js.user.password.instructions', count: SiteSetting.min_password_length) %></label>
<span style="display: none;"><input name="username" type="text" value="<%= @user.username %>"></span>
<input id="user_password" name="password" size="30" type="password" maxlength="<%= User.max_password_length %>">
<label><%= t('js.user.password.instructions', count: SiteSetting.min_password_length) %></label>
</p>
<p>
<%=submit_tag( @user.has_password? ? t('password_reset.update') : t('password_reset.save'), class: 'btn')%>