src/mako/gatekeeper/entities/user/User.php
public function resetThrottle(bool $autoSave = true): bool
	{
		if($this->failed_attempts > 0)
		{
			$this->failed_attempts = 0;

			$this->last_fail_at = null;

			$this->locked_until = null;

			return $autoSave ? $this->save() : true;
		}

		return true;
	}
public function resetThrottle(bool $autoSave = true): bool
	{
		if($this->failed_attempts > 0)
		{
			$this->failed_attempts = 0;

			$this->last_fail_at = null;

			$this->locked_until = null;

			return $autoSave ? $this->save() : true;
		}

		return true;
	}
public function resetThrottle ( bool $ autoSave = true ) : bool { if ( $ this -> failed_attempts > 0 ) { $ this -> failed_attempts = 0 ; $ this -> last_fail_at = null ; $ this -> locked_until = null ; return $ autoSave ? $ this -> save ( ) : true ; } return true ; }
Resets the login throttling.

@param  bool $autoSave Autosave changes?
@return bool
Resets the login throttling .