From 2f5b1ea161fb32c2b73095543ffc27be0f8ec936 Mon Sep 17 00:00:00 2001 From: Godwin Date: Wed, 26 Aug 2015 22:01:31 -0700 Subject: [PATCH] Fixed logging in on translator pages --- app/controllers/application_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index afc803c..22bccc0 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -27,6 +27,10 @@ class ApplicationController < LinguaFrancaApplicationController ActionMailer::Base.default_url_options = {:host => "#{request.protocol}#{request.host_with_port}"} + if request.post? && params[:action] == 'do_confirm' + halt_redirection! + end + # call the base method to detect the language super end