From a5994661adb85264eca6d12e851a88637782c155 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 16 Aug 2018 16:15:52 +0200 Subject: Removed user data from login message --- infrastructure/Auth/LoginProxy.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/infrastructure/Auth/LoginProxy.php b/infrastructure/Auth/LoginProxy.php index 817b49d..f214c23 100644 --- a/infrastructure/Auth/LoginProxy.php +++ b/infrastructure/Auth/LoginProxy.php @@ -44,11 +44,10 @@ class LoginProxy $user = $this->userRepository->getWhere('email', $email)->first(); if (!is_null($user)) { - $TokenObject = $this->proxy('password', [ + return $this->proxy('password', [ 'username' => $email, 'password' => $password ]); - return array_merge($TokenObject, ['user_data' => json_decode(json_encode($user), true)]); } throw new InvalidCredentialsException(); -- cgit v1.2.3