自动激活微信帐号
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?
|
raise user.errors.full_messages.first if user.new_record?
|
||||||
user.update_attributes(:lastname=>name)
|
user.update_attributes(:lastname=>name)
|
||||||
#自动激活
|
#自动激活
|
||||||
user = automatically_register(user)
|
user = AccountHelper.automatically_register(user)
|
||||||
UserWechat.create!(
|
UserWechat.create!(
|
||||||
openid: openid,
|
openid: openid,
|
||||||
user: user,
|
user: user,
|
||||||
|
|
Loading…
Reference in New Issue