module Devise::Controllers::Helpers

def allow_params_authentication!

Tell warden that params authentication is allowed for that specific page.
def allow_params_authentication!
  request.env["devise.allow_params_authentication"] = true
end