Skip to content

Commit

Permalink
log end of processing request and missing captcha
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaamani committed Sep 22, 2023
1 parent 4bc0b25 commit c62ae26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ app.post('/register', async (req, res) => {
} finally {
processingRequest.unlock()
stopTimer()
log('request handled')
}
})
})
Expand Down
1 change: 1 addition & 0 deletions src/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export async function register(
// verify captcha if enabled
if (HCAPTCHA_ENABLED && !canBypass) {
if (!captchaToken) {
log('No captcha sent with request')
callback(
{
error: 'MissingCaptchaToken',
Expand Down

0 comments on commit c62ae26

Please sign in to comment.