From c2877d8df7525c0644401dc567805d79b12f5791 Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 24 Jan 2023 21:31:11 +0000 Subject: [PATCH] fix account id validation --- src/helpers/validateSteamId.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/validateSteamId.js b/src/helpers/validateSteamId.js index 3089279..60e00f1 100644 --- a/src/helpers/validateSteamId.js +++ b/src/helpers/validateSteamId.js @@ -4,15 +4,15 @@ import Utils from "../utils/utils"; const KEY = "VALID_STEAM_ID_"; const TO_CHECK = [ - LeaderboardType.ScoreSaber.ApiUrl.PlayerData, LeaderboardType.BeatLeader.ApiUrl.PlayerData, + LeaderboardType.ScoreSaber.ApiUrl.PlayerData, ]; export async function isValidSteamId(steamId) { if (!steamId) { return false; } - if (steamId.length !== 17) { + if (steamId.length < 15 && steamId.length > 20) { return false; }