diff --git a/app/controllers/sso_controller.rb b/app/controllers/sso_controller.rb index b4b2866a9..7a1433873 100644 --- a/app/controllers/sso_controller.rb +++ b/app/controllers/sso_controller.rb @@ -27,7 +27,8 @@ class SsoController < ApplicationController def parse(auth) crypted_str = Base64.decode64(auth) pkey = OpenSSL::PKey::RSA.new(File.new(File.join(Rails.root,"config/private.key"))) - content = pkey.private_decrypt(pwd,OpenSSL::PKey::RSA::NO_PADDING) + # content = pkey.private_decrypt(pwd,OpenSSL::PKey::RSA::NO_PADDING) + content = pkey.private_decrypt(crypted_str) JSON.parser(content) end