fixes #2478: Add links for easy opt-out of emails
This commit is contained in:
@@ -360,6 +360,10 @@ module Danbooru
|
||||
false
|
||||
end
|
||||
|
||||
def email_key
|
||||
"zDMSATq0W3hmA5p3rKTgD"
|
||||
end
|
||||
|
||||
# For downloads, if the host matches any of these IPs, block it
|
||||
def banned_ip_for_download?(ip_addr)
|
||||
raise ArgumentError unless ip_addr.is_a?(IPAddr)
|
||||
|
||||
@@ -53,6 +53,7 @@ Rails.application.routes.draw do
|
||||
end
|
||||
namespace :maintenance do
|
||||
namespace :user do
|
||||
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]
|
||||
|
||||
Reference in New Issue
Block a user