app/controllers/auth/concerns/devise_concern.rb in wordjelly-auth-1.5.7 vs app/controllers/auth/concerns/devise_concern.rb in wordjelly-auth-1.5.8

- old
+ new

@@ -70,11 +70,11 @@ end end def set_client - puts "came to set client -------!!!!!!!!!!!!! " + #puts "came to set client -------!!!!!!!!!!!!! " if session[:client] return true @@ -106,11 +106,11 @@ else if session[:client] = Auth::Client.find_valid_api_key_and_app_id(api_key, current_app_id) - puts "found valid client." + #puts "found valid client." request.env["omniauth.model"] = path self.m_client = Auth::Client.find_valid_api_key_and_app_id(api_key, current_app_id) return true @@ -137,15 +137,15 @@ ##not return anything sensitive. #puts "action name is otp verification result." else #puts "action name is something else." if session[:client].nil? - puts "cient is nil so rendering nothing." + #puts "cient is nil so rendering nothing." #render :nothing => true , :status => :unauthorized head :unauthorized else - puts " -------- have A VALID CLIENT WITH JSON --------- " + #puts " -------- have A VALID CLIENT WITH JSON --------- " end end else if verify_authenticity_token == false @@ -180,19 +180,19 @@ end def do_before_request - puts "DO BEFORE REQUEST" + #puts "DO BEFORE REQUEST" clear_client_and_redirect_url - puts "SET CLIENT" + #puts "SET CLIENT" set_client - puts "SET REDIRECT" + #puts "SET REDIRECT" set_redirect_url - puts "PROTECT JSON" + #puts "PROTECT JSON" protect_json_request end ##used only in render, redirect in DeviseController.class_eval \ No newline at end of file