Browse Source

FIX educoder auto register

tags/v1.0.0
Jasder 5 years ago
parent
commit
bb98dad64c
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/controllers/oauth/educoder_controller.rb
  2. +1
    -1
      app/views/oauth/register.html.erb

+ 1
- 1
app/controllers/oauth/educoder_controller.rb View File

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


+ 1
- 1
app/views/oauth/register.html.erb View File

@@ -11,7 +11,7 @@
</div>
<div class="indexInfo">
<span>邮箱:</span>
<%= text_field_tag :mail, '', placeholder: '请输入绑定邮箱', maxlength: 40, id: 'email' %>
<%= text_field_tag :mail, params[:mail], placeholder: '请输入绑定邮箱', maxlength: 40, id: 'email' %>
<p class="checkInfo emailCheck"><span></span></p>
</div>
<div class="indexInfo">


Loading…
Cancel
Save