|
|
@ -17,7 +17,7 @@ class Oauth::CreateOrFindQqAccountService < ApplicationService
|
|
|
|
new_user = true
|
|
|
|
new_user = true
|
|
|
|
# 新用户
|
|
|
|
# 新用户
|
|
|
|
login = User.generate_login('q')
|
|
|
|
login = User.generate_login('q')
|
|
|
|
@user = User.new(login: login, nickname: params.dig('info', 'nickname'))
|
|
|
|
@user = User.new(login: login, nickname: params.dig('info', 'nickname'), type: 'User', status: User::STATUS_ACTIVE)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
ActiveRecord::Base.transaction do
|
|
|
|
ActiveRecord::Base.transaction do
|
|
|
|