Skip to content

Commit

Permalink
Update LoginController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 authored Jan 14, 2025
1 parent fe9778f commit bbce453
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Controller/Admin/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ public function lostpasswordAction(
Logger::error('Error sending password recovery email: ' . $e->getMessage());
$error = 'lost_password_email_error';
}
} else {
}

if ($error) {
Logger::error('Lost password service: ' . $error);
//to avoid timing based enumeration
usleep(random_int(50,200));
Expand Down

0 comments on commit bbce453

Please sign in to comment.