Fix ssl verify error.

This commit is contained in:
chiu 2021-06-11 15:50:00 +08:00
parent f1e313aed6
commit 46ea4b9357
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,6 @@
class SsoLoginBoxController < SessionsController class SsoLoginBoxController < SessionsController
require 'openssl'
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
def ntnu_oauth2_sign_in def ntnu_oauth2_sign_in
# receive code from ntnu # receive code from ntnu
code = params[:code] code = params[:code]