<%= form_tag "password_resets", html: { class: "needs-validation", novalidate: true } do %>
<%= hidden_field_tag 'user', Base64.encode64(Marshal.dump(@user)) %>
<%= password_field_tag :password, params[:password], {
class: "form-control",
id: "password",
placeholder: "Enter new password",
required: true,
autofocus: true,
minlength: 6
} %>
Password must be at least 6 characters long
<%= password_field_tag :confirm_password, params[:confirm_password], {
class: "form-control",
id: "confirm_password",
placeholder: "Re-enter new password",
required: true
} %>
<%= submit_tag "Create New Password", class: "btn btn-primary btn-lg" %>
<%= link_to login_path, class: "btn btn-outline-secondary" do %>
Back to Login
<% end %>
<% end %>
Password Security Tips
Use a mix of letters, numbers, and symbols. Avoid common words or personal information.