From 940b04615053b46e2f91ae076fd6d7b17edcab9a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 10 Feb 2023 13:16:39 -0800 Subject: lowercase usernames --- lib/invoices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/invoices.js') diff --git a/lib/invoices.js b/lib/invoices.js index bab48515..86d48bd8 100644 --- a/lib/invoices.js +++ b/lib/invoices.js @@ -19,7 +19,7 @@ export let generate = async ({ invoice, user, sender, memo }) => { if (tip > 5 * amount || tip < 0) fail("tip amount out of range"); if (!user) user = sender; - let uid = await g(`user:${user.username}`); + let uid = await g(`user:${user.username.toLowerCase()}`); user = await g(`user:${uid}`); if (!user) fail("user not provided"); -- cgit v1.2.3