From 46ea4b9357078eb0ce606a9587f2eefc3d2b2d91 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 11 Jun 2021 15:50:00 +0800 Subject: [PATCH] Fix ssl verify error. --- app/controllers/sso_login_box_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/sso_login_box_controller.rb b/app/controllers/sso_login_box_controller.rb index bc9d51c..099ce69 100644 --- a/app/controllers/sso_login_box_controller.rb +++ b/app/controllers/sso_login_box_controller.rb @@ -1,4 +1,6 @@ class SsoLoginBoxController < SessionsController + require 'openssl' + OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE def ntnu_oauth2_sign_in # receive code from ntnu code = params[:code]