Airship\Engine\Security\AirBrake::registerAccountRecoveryAttempt PHP Method

registerAccountRecoveryAttempt() public method

Register account recovery attempt
public registerAccountRecoveryAttempt ( string $username, string $ip ) : boolean
$username string
$ip string
return boolean
    public function registerAccountRecoveryAttempt(string $username, string $ip) : bool
    {
        $this->db->beginTransaction();
        $this->db->insert('airship_failed_logins', ['action' => self::ACTION_RECOVER, 'occurred' => (new \DateTime())->format(\AIRSHIP_DATE_FORMAT), 'username' => $username, 'ipaddress' => $ip, 'subnet' => $this->getSubnet($ip)]);
        return $this->db->commit();
    }