@@ -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 | |
@@ -112,7 +112,7 @@ |
||
| 112 | 112 | return $request->wantsJson() |
| 113 | 113 | ? new Response('', 201) |
| 114 | 114 | : redirect($this->redirectPath());*/ |
| 115 | - }catch (ValidationException $e) { |
|
| 115 | + } catch (ValidationException $e) { |
|
| 116 | 116 | $attributes = $e->validator->attributes(); |
| 117 | 117 | $attributes['provider'] = $provider; |
| 118 | 118 | return redirect()->route('register-social-network') |