fixed 增加自动登录

This commit is contained in:
xiaoxiaoqiong 2022-05-24 10:33:21 +08:00
parent 56721930a2
commit 26bfc2c0bf
1 changed files with 1 additions and 1 deletions

View File

@ -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)