public function confirm(string $confirmationToken) : bool {
		if ($confirmationToken === $this->confirmationToken) {

			$this->confirmed = true;
			$stmt = $this->db->prepare(
				"UPDATE accounts " .
				"SET confirmation='confirmed' " .
				"WHERE id=?"
			);
			$stmt->bind_param("i", $this->id);
			$stmt->execute();
			$this->db->commit();
			$this->confirmed = true;
			$this->confirmationToken = "";
			return true;
		} else {
			return false;
		}
	}