feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
158 changed files with 575 additions and 5436 deletions
Showing only changes of commit 1d03b262ae - Show all commits

View File

@ -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");
}