From 1d03b262aebeb6dcdbbfebdacbfbbdf761b45ebe Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Tue, 3 Jun 2025 19:35:36 -0400 Subject: [PATCH] Debug --- app/src/Controller/API/Login.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/Controller/API/Login.php b/app/src/Controller/API/Login.php index 3c0bad8..24d85b5 100644 --- a/app/src/Controller/API/Login.php +++ b/app/src/Controller/API/Login.php @@ -25,6 +25,12 @@ class Login extends Ideal\Controller $statusCode = 409; try { $user = $userRepository->fetchByName($body['username']); + $this->logger->info('Login', [ + 'username' => $body['username'], + 'password' => $body['password'], + 'supplied_hash' => password_hash($body['password'], PASSWORD_DEFAULT), + 'password_hash' => $user->password + ]); if (!$user->validate($body['password'])) { throw new EmptyResult("Invalid password"); }