自动激活微信帐号
This commit is contained in:
parent
f50cfe159c
commit
e17683d3d5
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue