If you supplied an email address when signing up, <%= Danbooru.config.app_name %> can email you your login information. Password details will not be provided and will not be changed.
-
-
If you didn't supply a valid email address, you are out of luck.
-
- <%= form_tag(maintenance_user_login_reminder_path, :class => "simple_form") do %>
-
-
- <%= email_field(:user, :email) %>
-
-
- <%= submit_tag "Submit" %>
- <% end %>
-
-
-
-<%= render "sessions/secondary_links" %>
-
-<% content_for(:page_title) do %>
- Login Reminder - <%= Danbooru.config.app_name %>
-<% end %>
diff --git a/config/routes.rb b/config/routes.rb
index e79834876..3d95f51d9 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -59,7 +59,6 @@ Rails.application.routes.draw do
resource :count_fixes, only: [:new, :create]
resource :email_notification, :only => [:show, :destroy]
resource :password_reset, :only => [:new, :create, :edit, :update]
- resource :login_reminder, :only => [:new, :create]
resource :deletion, :only => [:show, :destroy]
resource :email_change, :only => [:new, :create]
resource :dmail_filter, :only => [:edit, :update]
diff --git a/test/functional/maintenance/user/login_reminders_controller_test.rb b/test/functional/maintenance/user/login_reminders_controller_test.rb
deleted file mode 100644
index c7cd8e28c..000000000
--- a/test/functional/maintenance/user/login_reminders_controller_test.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-require "test_helper"
-
-module Maintenance
- module User
- class LoginRemindersControllerTest < ActionDispatch::IntegrationTest
- context "A login reminder controller" do
- setup do
- @user = create(:user)
- @blank_email_user = create(:user, :email => "")
- ActionMailer::Base.delivery_method = :test
- ActionMailer::Base.deliveries.clear
- end
-
- should "render the new page" do
- get new_maintenance_user_login_reminder_path
- assert_response :success
- end
-
- should "deliver an email with the login to the user" do
- post maintenance_user_login_reminder_path, params: {:user => {:email => @user.email}}
- assert_equal(1, ActionMailer::Base.deliveries.size)
- end
-
- context "for a user with a blank email" do
- should "fail" do
- post maintenance_user_login_reminder_path, params: {:user => {:email => ""}}
- @blank_email_user.reload
- assert_equal(@blank_email_user.created_at.to_i, @blank_email_user.updated_at.to_i)
- assert_equal(0, ActionMailer::Base.deliveries.size)
- end
- end
- end
- end
- end
-end
diff --git a/test/unit/maintenance/user/login_reminder_mailer_test.rb b/test/unit/maintenance/user/login_reminder_mailer_test.rb
deleted file mode 100644
index 7d240bfdd..000000000
--- a/test/unit/maintenance/user/login_reminder_mailer_test.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-require "test_helper"
-
-module Maintenance
- module User
- class LoginReminderMailerTest < ActionMailer::TestCase
- context "The login reminder mailer" do
- setup do
- @user = FactoryBot.create(:user)
- end
-
- should "send the notice" do
- LoginReminderMailer.notice(@user).deliver_now
- assert !ActionMailer::Base.deliveries.empty?
- end
- end
- end
- end
-end