自动激活微信帐号

This commit is contained in:
yuanke 2016-08-14 12:42:39 +08:00
parent f50cfe159c
commit e17683d3d5
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ module Mobile
raise user.errors.full_messages.first if user.new_record?
user.update_attributes(:lastname=>name)
#自动激活
user = automatically_register(user)
user = AccountHelper.automatically_register(user)
UserWechat.create!(
openid: openid,
user: user,