From 84927c2361e6fc57757a5acd94ab414357e90e49 Mon Sep 17 00:00:00 2001 From: jasder Date: Thu, 13 May 2021 11:47:47 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20=E8=A7=A3=E5=86=B3=E5=A4=A7=E8=B5=9B?= =?UTF-8?q?=E4=B8=AD=E7=82=B9=E5=87=BB=E9=A1=B9=E7=9B=AE=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=88=B0forge=E5=B9=B3=E5=8F=B0=EF=BC=8C=E4=BF=9D=E6=8C=81?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=99=BB=E9=99=86=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/oauth_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/oauth_controller.rb b/app/controllers/oauth_controller.rb index cf43dbe6f..f2ca2cc21 100644 --- a/app/controllers/oauth_controller.rb +++ b/app/controllers/oauth_controller.rb @@ -74,9 +74,10 @@ class OauthController < ApplicationController logger.info "[Oauth educoer] ====auto_register success" user = User.find result[:user][:id] user.update_column(:lastname, params[:lastname]) - successful_authentication(user) autosync_register_trustie(login, password, email, lastname) + OpenUsers::Educoder.create!(user: user, uid: user.login) + successful_authentication(user) render json: { callback_url: callback_url } # redirect_to callback_url