Minor Clean up
This commit is contained in:
parent
970cf417cc
commit
a1e9de5807
2 changed files with 1 additions and 10 deletions
|
|
@ -57,9 +57,6 @@ class PasswordProtection
|
|||
$user = false;
|
||||
$google = new Google();
|
||||
$user = $google->getTokenResponse(request()->header('X-API-OAUTH-PASSWORD'));
|
||||
|
||||
nlog("user");
|
||||
nlog($user);
|
||||
|
||||
if (is_array($user)) {
|
||||
|
||||
|
|
@ -68,8 +65,6 @@ class PasswordProtection
|
|||
'oauth_provider_id'=> 'google'
|
||||
];
|
||||
|
||||
nlog($query);
|
||||
|
||||
//If OAuth and user also has a password set - check both
|
||||
if ($existing_user = MultiDB::hasUser($query) && auth()->user()->company()->oauth_password_required && auth()->user()->has_password && Hash::check(auth()->user()->password, $request->header('X-API-PASSWORD'))) {
|
||||
|
||||
|
|
|
|||
|
|
@ -430,8 +430,6 @@ class Import implements ShouldQueue
|
|||
|
||||
private function transformCompanyData(array $data): array
|
||||
{
|
||||
nlog("pre transformed");
|
||||
nlog($data['settings']);
|
||||
|
||||
$company_settings = CompanySettings::defaults();
|
||||
|
||||
|
|
@ -454,9 +452,7 @@ class Import implements ShouldQueue
|
|||
|
||||
$data['settings'] = $company_settings;
|
||||
}
|
||||
|
||||
nlog("transformed Settings");
|
||||
nlog($data['settings']);
|
||||
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue