public function updateLoginAttempt($loginattempt = null)
{
if ($loginattempt) {
$this->db->Execute("UPDATE `account_users` SET loginattempts = loginattempts + ? WHERE id = ?", [$loginattempt, $this->id]);
$this->loginattempts++;
} else {
$this->db->Execute("UPDATE `account_users` SET loginattempts = 0 WHERE id = ?", [$this->id]);
$this->loginattempts = 0;
}
}