mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 20:55:46 +08:00
Merge branch 'dev_change_route' into dev_devops
This commit is contained in:
@@ -62,7 +62,11 @@ class OauthController < ApplicationController
|
||||
email = params[:mail]
|
||||
password = params[:password]
|
||||
callback_url = params[:callback_url]
|
||||
platform = params[:plathform] || 'forge'
|
||||
platform = params[:plathform] || 'educoder'
|
||||
|
||||
if User.where(mail: email).exists?
|
||||
render_error("该邮箱已使用过.") and return
|
||||
end
|
||||
|
||||
result = autologin_register(login, email, password, platform)
|
||||
logger.info "[Oauth educoer] =====#{result}"
|
||||
|
||||
Reference in New Issue
Block a user