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 @@