mirror of
https://github.com/ryankazokas/turbovault-app.git
synced 2026-04-17 04:02:53 +00:00
41 lines
1.8 KiB
Plaintext
41 lines
1.8 KiB
Plaintext
<div class="max-w-md mx-auto">
|
|
<h1 class="text-3xl font-bold mb-6">Forgot Your Password?</h1>
|
|
|
|
<p class="text-gray-600 mb-6">
|
|
Enter your email address and we'll send you instructions to reset your password.
|
|
</p>
|
|
|
|
<%= form_with url: password_resets_path, method: :post, class: "space-y-4" do |f| %>
|
|
<div>
|
|
<%= f.label :email, class: "block text-sm font-medium text-gray-700" %>
|
|
<%= f.email_field :email, autofocus: true, required: true, placeholder: "your@email.com", class: "mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500" %>
|
|
</div>
|
|
|
|
<div>
|
|
<%= f.submit "Send Reset Instructions", class: "w-full px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700" %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="mt-6 text-center space-y-2">
|
|
<%= link_to "← Back to Login", login_path, class: "text-indigo-600 hover:text-indigo-800" %>
|
|
</div>
|
|
|
|
<% if Rails.env.development? %>
|
|
<div class="mt-8 p-4 bg-blue-50 border-l-4 border-blue-400 rounded">
|
|
<div class="flex">
|
|
<div class="flex-shrink-0">
|
|
<svg class="h-5 w-5 text-blue-400" viewBox="0 0 20 20" fill="currentColor">
|
|
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd" />
|
|
</svg>
|
|
</div>
|
|
<div class="ml-3">
|
|
<p class="text-sm text-blue-700">
|
|
<strong>Development Mode:</strong> Password reset emails are being captured by Mailpit.
|
|
View them at <a href="http://localhost:8025" target="_blank" class="underline font-semibold">localhost:8025</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|