fixed 授权登录绑定账号返回用户信息

This commit is contained in:
xxq250 2022-12-26 16:09:43 +08:00
parent 87ee19e882
commit 0a44e84540
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ class BindUsersController < ApplicationController
tip_exception '该账号已被绑定,请更换其他账号进行绑定' if bind_user.bind_open_user?(params[:type].to_s)
"OpenUsers::#{params[:type].to_s.capitalize}".constantize.create!(user: bind_user, uid: session[:unionid])
successful_authentication(bind_user)
@user = bind_user
end