This commit is contained in:
guange 2016-06-17 18:50:43 +08:00
parent 9d19caa736
commit 762ca9c3cb
1 changed files with 1 additions and 1 deletions

View File

@ -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
#补全用户信息