From bb98dad64c9b6f53e1c6e9e862c26e48d972be9a Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Fri, 11 Sep 2020 22:40:32 +0800 Subject: [PATCH] FIX educoder auto register --- app/controllers/oauth/educoder_controller.rb | 2 +- app/views/oauth/register.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/oauth/educoder_controller.rb b/app/controllers/oauth/educoder_controller.rb index f27b8b6d3..8ed537d6c 100644 --- a/app/controllers/oauth/educoder_controller.rb +++ b/app/controllers/oauth/educoder_controller.rb @@ -25,7 +25,7 @@ class Oauth::EducoderController < Oauth::BaseController redirect_to callback_url else - redirect_to oauth_register_path(login: login, callback_url: callback_url) + redirect_to oauth_register_path(login: login, mail: mail, callback_url: callback_url) end end rescue WechatOauth::Error => ex diff --git a/app/views/oauth/register.html.erb b/app/views/oauth/register.html.erb index 59a3d4857..96778fa06 100644 --- a/app/views/oauth/register.html.erb +++ b/app/views/oauth/register.html.erb @@ -11,7 +11,7 @@