aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--infrastructure/Auth/LoginProxy.php3
1 files changed, 1 insertions, 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();