@@ -23,7 +23,7 @@ |
||
23 | 23 | { |
24 | 24 | |
25 | 25 | try { |
26 | - $payload = json_decode($request->getContent()); |
|
26 | + $payload = json_decode($request->getContent()); |
|
27 | 27 | |
28 | 28 | $user = $this->service->changePassword($data, $payload->password); |
29 | 29 |
@@ -24,8 +24,8 @@ |
||
24 | 24 | { |
25 | 25 | |
26 | 26 | try { |
27 | - $payload = json_decode($request->getContent()); |
|
28 | - $people = $this->manager->getRepository(People::class)->find($payload->people); |
|
27 | + $payload = json_decode($request->getContent()); |
|
28 | + $people = $this->manager->getRepository(People::class)->find($payload->people); |
|
29 | 29 | |
30 | 30 | $user = $this->service->createUser( |
31 | 31 | $people, |
@@ -24,8 +24,8 @@ |
||
24 | 24 | { |
25 | 25 | |
26 | 26 | try { |
27 | - $payload = json_decode($request->getContent()); |
|
28 | - $people = $this->service->discoveryPeople($payload->email, $payload->name); |
|
27 | + $payload = json_decode($request->getContent()); |
|
28 | + $people = $this->service->discoveryPeople($payload->email, $payload->name); |
|
29 | 29 | |
30 | 30 | $user = $this->service->getUserSession($this->service->createUser( |
31 | 31 | $people, |
@@ -39,7 +39,7 @@ |
||
39 | 39 | throw new CustomUserMessageAuthenticationException('No API token provided'); |
40 | 40 | |
41 | 41 | return new Passport( |
42 | - new UserBadge($apiToken, function ($apiToken) { |
|
42 | + new UserBadge($apiToken, function($apiToken) { |
|
43 | 43 | $user = $this->em->getRepository(User::class)->findOneBy(['apiKey' => $apiToken]); |
44 | 44 | if (null === $user) |
45 | 45 | throw new CustomUserMessageAuthenticationException('Invalid API token'); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $this->provider = new Instagram([ |
26 | 26 | 'clientId' => $this->clientId, |
27 | 27 | 'clientSecret' => $this->clientSecret, |
28 | - 'redirectUri' => 'https://' .$this->domainService->getMainDomain() . '/oauth/instagram/return', |
|
28 | + 'redirectUri' => 'https://' . $this->domainService->getMainDomain() . '/oauth/instagram/return', |
|
29 | 29 | ]); |
30 | 30 | } |
31 | 31 |