code=>params[:code]
This commit is contained in:
parent
4137fe07f3
commit
4561bdfd0d
|
@ -196,7 +196,7 @@ class WechatsController < ActionController::Base
|
||||||
|
|
||||||
def login
|
def login
|
||||||
session[:wechat_code] = params[:code] if params[:code]
|
session[:wechat_code] = params[:code] if params[:code]
|
||||||
openid = get_openid_from_code(code)
|
openid = get_openid_from_code(params[:code])
|
||||||
@wechat_user = user_binded?(openid)
|
@wechat_user = user_binded?(openid)
|
||||||
|
|
||||||
render 'wechats/login', layout: 'base_wechat'
|
render 'wechats/login', layout: 'base_wechat'
|
||||||
|
|
Loading…
Reference in New Issue