A submenu has been added to the side menu's 'Edit user account' option. This submenu has two options: - Reset password via email: an email is send so that the user can change their password by themselves. - Reset password manually: the manager has to write the password manually (or generate a random one). The passwords generated by the random password generator don't contain characters like $ or !. It uses some capital letters, some other lower case letters and some numbers. Ambiguous characters like 1, l, I has been removed.
21 lines
863 B
Plaintext
21 lines
863 B
Plaintext
<h2 class="not-print"><%= t("management.account.menu.reset_password_manually") %></h2>
|
|
|
|
<%= form_for managed_user, url: change_password_management_account_path do |f| %>
|
|
<div class="row">
|
|
<%= f.label :password %>
|
|
<p class="help-text"><%= t("management.account.edit.password.print_help") %></p>
|
|
<div class="columns small-6 end">
|
|
|
|
<div class="input-group">
|
|
<%= f.password_field :password, class: "input-group-field no-margin-bottom", label: false, value: nil %>
|
|
<span class="input-group-label">
|
|
<a href="#" class="show-password"><i class="icon-eye"></i></a>
|
|
</span>
|
|
</div>
|
|
|
|
<%= link_to t("management.account.edit.password.random"), '#', class: 'generate-random-value float-right' %>
|
|
</div>
|
|
</div>
|
|
<%= f.submit t("management.account.edit.password.save"), class: "button success" %>
|
|
<% end %>
|