@@ -101,7 +101,7 @@ |
||
101 | 101 | return $request->wantsJson() |
102 | 102 | ? new Response('', 201) |
103 | 103 | : redirect($this->redirectPath()); |
104 | - }catch (ValidationException $e) { |
|
104 | + } catch (ValidationException $e) { |
|
105 | 105 | $attributes = $e->validator->attributes(); |
106 | 106 | $attributes['provider'] = $provider; |
107 | 107 | return redirect()->route('register-social-network') |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | if($provider === 'twitter'){ |
16 | 16 | $user = Socialite::driver($provider)->user(); |
17 | - }else { |
|
17 | + } else { |
|
18 | 18 | $user = Socialite::driver($provider)->stateless()->user(); |
19 | 19 | } |
20 | 20 |