add minUserIDLength config option

This commit is contained in:
Michael C
2022-12-17 23:35:13 -05:00
parent cff2325aef
commit 2683c61995
5 changed files with 9 additions and 5 deletions

View File

@@ -325,7 +325,7 @@ export async function vote(ip: IPAddress, UUID: SegmentUUID, paramUserID: UserID
return { status: 400 };
}
// Ignore this vote, invalid
if (paramUserID.length < 30 && config.mode !== "test") {
if (paramUserID.length < config.minUserIDLength) {
return { status: 200 };
}