octobercms/october · error · ApplicationException
Too many password reset attempts, please try again in…
Error message
Too many password reset attempts, please try again in :seconds seconds.
What it means
Thrown by Auth::handleSubmitRestore when the 'backend.auth.restore' rate limiter exceeds 5 attempts from the client IP. The limiter throttles password-reset (restore) requests per IP with a 600-second window, both to prevent email flooding and to blunt username-enumeration timing attacks; the message includes seconds until the next allowed attempt.
Solutions
- Wait for the cooldown (availableIn seconds) before requesting another reset email
- Reduce automated or repeated restore form submissions from the same IP
- Administrators can clear the rate limiter (cache) if a legitimate client was locked out
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at modules/backend/controllers/Auth.php:188 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/ec2ac172c51254e0.
Report an issue: GitHub.
Appendix: source
Thrown at modules/backend/controllers/Auth.php:188
* handleSubmitRestore submits the restore form
*/
protected function handleSubmitRestore()
{
$rules = [
'login' => 'required|between:2,255'
];
$validation = Validator::make(post(), $rules, [], ['login' => __('Username')]);
if ($validation->fails()) {
throw new ValidationException($validation);
}
// Throttle reset requests by IP to limit email flooding and slow
// username enumeration via timing analysis.
$limiter = new RateLimiter('backend.auth.restore');
if ($limiter->tooManyAttempts(5)) {
throw new ApplicationException(__("Too many password reset attempts, please try again in :seconds seconds.", [
'seconds' => $limiter->availableIn()
]));
}
$limiter->increment(600);
$user = BackendAuth::findUserByLogin(post('login'));
if (!$user) {
// For security reasons, only show detailed error when debug mode is on
if (System::checkDebugMode()) {
throw new ValidationException([
'login' => __("A user could not be found with a login value of ':login'", ['login' => post('login')])
]);
}
}
else {
// User found, send reset emailView on GitHub (pinned to b608633a7e)