FIX educoder auto register

This commit is contained in:
Jasder 2020-09-11 22:40:32 +08:00
parent 91966192e1
commit bb98dad64c
2 changed files with 2 additions and 2 deletions

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

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