This commit is contained in:
parent
9d19caa736
commit
762ca9c3cb
|
@ -16,7 +16,7 @@ module Mobile
|
|||
raise "无法获取到openid,请在微信中打开本页面" unless openid
|
||||
raise "此微信号已绑定用户, 不能重复绑定" if UserWechat.where(openid: openid).first
|
||||
|
||||
user, last_login_on = User.try_to_login(params[:username], params[:password])
|
||||
user, last_login_on = User.try_to_login(params[:login], params[:password])
|
||||
raise "用户名或密码错误,请重新输入" unless user
|
||||
#补全用户信息
|
||||
|
||||
|
|
Loading…
Reference in New Issue