Not needed
This commit is contained in:
@ -25,12 +25,6 @@ class Login extends Ideal\Controller
|
|||||||
$statusCode = 409;
|
$statusCode = 409;
|
||||||
try {
|
try {
|
||||||
$user = $userRepository->fetchByName($body['username']);
|
$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'])) {
|
if (!$user->validate($body['password'])) {
|
||||||
throw new EmptyResult("Invalid password");
|
throw new EmptyResult("Invalid password");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user