mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-03 11:09:27 +00:00
Fixed 第三方一键注册获取用户信息错误的问题
This commit is contained in:
@@ -129,7 +129,7 @@ class BaseController extends Controller
|
||||
if (! $user) {
|
||||
$user = UserOauth::whereIdentifier($info->getId())->first();
|
||||
if (! $user) {
|
||||
$user = Helpers::addUser($info->getEmail(), Str::random(), MB * ((int) sysConfig('default_traffic')), null, $user->getNickname());
|
||||
$user = Helpers::addUser($info->getEmail(), Str::random(), MB * ((int) sysConfig('default_traffic')), null, $info->getNickname());
|
||||
|
||||
if ($user) {
|
||||
$user->userAuths()->create([
|
||||
|
||||
Reference in New Issue
Block a user