mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 12:19:10 +00:00
rpc/auth: force lowercase the human challenge
This commit is contained in:
parent
bbb34f1771
commit
fe7c55a6c9
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ import { type Context } from 'koa'
|
|||
|
||||
export default ($: AppContext) => ({
|
||||
async checkAuthChallenge (ctx: Context, text: string): Promise<boolean> {
|
||||
const chall = await $.auth.fetchDMChallenge({ human: text })
|
||||
const chall = await $.auth.fetchDMChallenge({ human: text.toLowerCase() })
|
||||
if (chall == null) {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue