Merge pull request #2834 from techAPJ/patch-1
trigger "browser password manager" for password reset page
This commit is contained in:
commit
489078bfcf
|
@ -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')%>
|
||||
|
|
Loading…
Reference in New Issue