Remove unnecessary json_encode in oauthcontrollers (#391)
				
					
				
			This commit is contained in:
		
							parent
							
								
									4f43e9171a
								
							
						
					
					
						commit
						7a6edab79a
					
				| @ -42,7 +42,7 @@ class OAuthController extends Controller | ||||
|             $oauth = $request->user()->oauth; | ||||
|             $oauth[$driver] = $oauthUser->getId(); | ||||
| 
 | ||||
|             $this->updateService->handle($request->user(), ['oauth' => json_encode($oauth)]); | ||||
|             $this->updateService->handle($request->user(), ['oauth' => $oauth]); | ||||
| 
 | ||||
|             return redirect()->route('account'); | ||||
|         } | ||||
|  | ||||
| @ -37,7 +37,7 @@ class OAuthController extends Controller | ||||
|         $oauth = $request->user()->oauth; | ||||
|         unset($oauth[$request->get('driver')]); | ||||
| 
 | ||||
|         $this->updateService->handle($request->user(), ['oauth' => json_encode($oauth)]); | ||||
|         $this->updateService->handle($request->user(), ['oauth' => $oauth]); | ||||
| 
 | ||||
|         return new Response('', Response::HTTP_NO_CONTENT); | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Boy132
						Boy132