mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 11:45:57 +08:00
fixed 增加自动登录
This commit is contained in:
@@ -331,7 +331,7 @@ class UsersController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def sso_login
|
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" }
|
params = { "login" => "#{params[:login]}", "private_token" => "hriEn3UwXfJs3PmyXnSH" }
|
||||||
api_url= "https://pre-data.educoder.net"
|
api_url= "https://pre-data.educoder.net"
|
||||||
client = Faraday.new(url: api_url)
|
client = Faraday.new(url: api_url)
|
||||||
|
|||||||
Reference in New Issue
Block a user