fixed 增加自动登录
This commit is contained in:
parent
56721930a2
commit
26bfc2c0bf
|
@ -331,7 +331,7 @@ class UsersController < ApplicationController
|
|||
end
|
||||
|
||||
def sso_login
|
||||
if params[:login].present? && !current_user.logged? && params[:websiteName].nil?
|
||||
if params[:login].present? && !current_user.logged? && params[:websiteName].present?
|
||||
params = { "login" => "#{params[:login]}", "private_token" => "hriEn3UwXfJs3PmyXnSH" }
|
||||
api_url= "https://pre-data.educoder.net"
|
||||
client = Faraday.new(url: api_url)
|
||||
|
|
Loading…
Reference in New Issue