mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
fixed 增加自动登录
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user