deactivating mailing

This commit is contained in:
2016-04-20 11:17:47 +02:00
parent 77ce438a41
commit bcc2b4af6b
3 changed files with 3 additions and 3 deletions
@@ -1,3 +1,3 @@
class Admin::ApplicationController < ApplicationController
http_basic_authenticate_with name: "admin", password: ENV['ADMIN_PASSWORD'] unless Rails.env.development?
http_basic_authenticate_with name: 'admin', password: ENV['ADMIN_PASSWORD'] unless Rails.env.development?
end
+1 -1
View File
@@ -8,7 +8,7 @@ class SupportersController < ApplicationController
def create
@supporter = Supporter.new supporter_form_params.merge(language: I18n.locale)
if !input_to_fast? && @supporter.save
SupporterMailer.welcome_email(@supporter).deliver_now
# SupporterMailer.welcome_email(@supporter).deliver_now
redirect_to thanks_path
else
flash.now[:danger] = t '.timeout' if input_to_fast?