diff --git a/app/controllers/sso_controller.rb b/app/controllers/sso_controller.rb index 23da4678f..73982ae9c 100644 --- a/app/controllers/sso_controller.rb +++ b/app/controllers/sso_controller.rb @@ -34,7 +34,7 @@ class SsoController < ApplicationController pkey = OpenSSL::PKey::RSA.new(File.new(File.join(Rails.root,"config/private.key"))) content = pkey.private_decrypt(crypted_str,OpenSSL::PKey::RSA::PKCS1_PADDING) # content = pkey.private_decrypt(crypted_str) - JSON.parser(content) + ActiveSupport::JSON.decode(content) end def login(id)