visuddhinanda пре 8 месеци
родитељ
комит
ec8f7e9ec0
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      api-v8/app/Http/Api/AuthApi.php

+ 4 - 1
api-v8/app/Http/Api/AuthApi.php

@@ -31,7 +31,10 @@ class AuthApi
                 return ['user_uid' => $jwt->uid, 'user_id' => $jwt->id];
                 return ['user_uid' => $jwt->uid, 'user_id' => $jwt->id];
             }
             }
         } else if (isset($_COOKIE['user_uid'])) {
         } else if (isset($_COOKIE['user_uid'])) {
-            return ['user_uid' => $_COOKIE['user_uid'], 'user_id' => $_COOKIE['user_id']];
+            return [
+                'user_uid' => $_COOKIE['user_uid'],
+                'user_id' => $_COOKIE['user_id']
+            ];
         } else {
         } else {
             return false;
             return false;
         }
         }