unlock()

public function unlock(): void

Description

Unlocks a previously blocked account after the block duration has expired. This method checks whether the rate-limit period has elapsed and, if so, clears the failed attempt counter and redirects the user back to the login form.

Parameters

This method takes no parameters.

Return Value

TypeDescription
voidRedirects to the login page if the block has expired.