From 712560b83d8834145b974f2324b0deb5c18b91b8 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 24 Jan 2024 04:16:36 +0000 Subject: check for undefined users --- lib/utils.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/utils.js') diff --git a/lib/utils.js b/lib/utils.js index e6aba14a..866bbaf9 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -66,5 +66,6 @@ export let fields = [ ]; export let getUser = async (username) => { + if (username === "undefined") fail("invalid user"); return migrate(username); }; -- cgit v1.2.3