From fe7c55a6c94b43ea5c0dd817eed0e7d2b631aea8 Mon Sep 17 00:00:00 2001 From: Kata Date: Tue, 19 Mar 2019 21:09:30 -0500 Subject: [PATCH] rpc/auth: force lowercase the human challenge --- rpc/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/auth.js b/rpc/auth.js index 0814019..471a4e3 100644 --- a/rpc/auth.js +++ b/rpc/auth.js @@ -4,7 +4,7 @@ import { type Context } from 'koa' export default ($: AppContext) => ({ async checkAuthChallenge (ctx: Context, text: string): Promise { - const chall = await $.auth.fetchDMChallenge({ human: text }) + const chall = await $.auth.fetchDMChallenge({ human: text.toLowerCase() }) if (chall == null) { return false }