Didn't request this email? Then you can safely ignore it.
-
-
+<% if @resource.tailwind_theme %>
+ <%= render "reset_password_instructions_new_theme", resource: @resource, token: @token %>
+<% else %>
+ <%= render "reset_password_instructions_current_theme", resource: @resource, token: @token %>
+<% end %>
diff --git a/spec/mailers/previews/login_and_account_preview.rb b/spec/mailers/previews/login_and_account_preview.rb
index 73153608a..945131e4b 100644
--- a/spec/mailers/previews/login_and_account_preview.rb
+++ b/spec/mailers/previews/login_and_account_preview.rb
@@ -19,6 +19,13 @@ def reset_password_instructions
Devise::Mailer.reset_password_instructions(user, "faketoken")
end
+ # It shows a different email address in the "to" and the body of the email.
+ # TODO: Figure out what's going on and fix it
+ def reset_password_instructions_new_theme
+ user = FactoryBot.build_stubbed(:user, name: "Matthew", tailwind_theme: true)
+ Devise::Mailer.reset_password_instructions(user, "faketoken")
+ end
+
def activate_account_instructions
user = FactoryBot.build_stubbed(:user)
Users::ActivationMailer.notify(user, "faketoken")