diff options
| author | Adam Soltys <[email protected]> | 2024-01-24 04:16:36 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-01-24 04:16:36 +0000 |
| commit | 712560b83d8834145b974f2324b0deb5c18b91b8 (patch) | |
| tree | 05bffcc713434bd0e27c350f744f7ec6dde770b4 /lib/utils.js | |
| parent | 9c7d46dbd78e4ba217adbc9d48fbd6e91f5fad99 (diff) | |
| download | coinos-server-712560b83d8834145b974f2324b0deb5c18b91b8.tar.gz coinos-server-712560b83d8834145b974f2324b0deb5c18b91b8.zip | |
check for undefined users
Diffstat (limited to 'lib/utils.js')
| -rw-r--r-- | lib/utils.js | 1 |
1 files changed, 1 insertions, 0 deletions
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); }; |
