2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'app/controllers/pixauth_controller.rb', line 2
def index
done_site = params[:done]
redirect_site = "http://www.pixnet.net/?done=#{CGI::escape(done_site)}"
sso = Pixnet::SSO::App.new
info = sso.decode_process(params[:token])
if info["info"]
self.current_user = sso.get_user(info["msg"]["user_name"])
self.current_openid_user = sso.get_openid_user(info) if Pixnet::SSO::Config.openid_enabled
redirect_to done_site
else
redirect_to redirect_site
end
end
|