Browse Source

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

pull/313/head
xxq250 3 years ago
parent
commit
0a44e84540
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/bind_users_controller.rb

+ 1
- 0
app/controllers/bind_users_controller.rb 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



Loading…
Cancel
Save