Passed
Pull Request — master (#4700)
by Nils
06:00
created
sources/identify.php 1 patch
Braces   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2314,7 +2314,9 @@  discard block
 block discarded – undo
2314 2314
         $session = SessionManager::getSession();
2315 2315
         $lang = new Language($session->get('user-language') ?? 'english');
2316 2316
 
2317
-        if (WIP === true) error_log("--- USER OAUTH2 NOT EXISTS IN TEAMPASS ---");
2317
+        if (WIP === true) {
2318
+            error_log("--- USER OAUTH2 NOT EXISTS IN TEAMPASS ---");
2319
+        }
2318 2320
 
2319 2321
         return [
2320 2322
             'error' => true,
@@ -2348,7 +2350,9 @@  discard block
 block discarded – undo
2348 2350
         }
2349 2351
 
2350 2352
         // Oauth2 user already exists and authenticated
2351
-        if (WIP === true) error_log("--- USER AUTHENTICATED ---");
2353
+        if (WIP === true) {
2354
+            error_log("--- USER AUTHENTICATED ---");
2355
+        }
2352 2356
         $userInfo['has_been_created'] = 0;
2353 2357
 
2354 2358
         $passwordManager = new PasswordManager();
@@ -2563,8 +2567,9 @@  discard block
 block discarded – undo
2563 2567
         );
2564 2568
 
2565 2569
         // No valid email address for user
2566
-        if (!$userInfos || !filter_var($userInfos['email'], FILTER_VALIDATE_EMAIL))
2567
-            return;
2570
+        if (!$userInfos || !filter_var($userInfos['email'], FILTER_VALIDATE_EMAIL)) {
2571
+                    return;
2572
+        }
2568 2573
 
2569 2574
         $unlock_url = $SETTINGS['cpassman_url'].'/self-unlock.php?login='.$value.'&otp='.$unlock_code;
2570 2575
 
Please login to merge, or discard this patch.