forked from Gitlink/forgeplus
FIX educoder auto register
This commit is contained in:
parent
91966192e1
commit
bb98dad64c
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue