Fix a bug with audio captcha
This commit is contained in:
parent
9ddbad9bfb
commit
22bbc99e0d
@ -9,11 +9,13 @@ export function configureAuthRoutes(
|
|||||||
t: AsyncRouter<APIDef>,
|
t: AsyncRouter<APIDef>,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
t.get('/auth/captcha.svg', image({
|
// use router because async router tries to send a json after promise
|
||||||
|
// succeeds and interrupts the output stream.
|
||||||
|
t.router.get('/auth/captcha.svg', image({
|
||||||
size: 6,
|
size: 6,
|
||||||
}) as any)
|
}))
|
||||||
|
|
||||||
t.get('/auth/captcha.wav', audio({
|
t.router.get('/auth/captcha.wav', audio({
|
||||||
commands: [espeak({})],
|
commands: [espeak({})],
|
||||||
size: 6,
|
size: 6,
|
||||||
}))
|
}))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user