Browse Source

fixed 增加自动登录

pull/313/head
xiaoxiaoqiong 4 years ago
parent
commit
26bfc2c0bf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/users_controller.rb

+ 1
- 1
app/controllers/users_controller.rb 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)


Loading…
Cancel
Save