Software /
code /
prosody-modules
Changeset
3679:f9a93d7b6c50
mod_register_web: Fix traceback if captcha_reply is left out of the form (thanks woffs)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 28 Sep 2019 21:26:28 +0200 |
parents | 3678:7575399ae544 |
children | 3680:7570976318a9 |
files | mod_register_web/mod_register_web.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_register_web/mod_register_web.lua Sat Sep 28 14:46:18 2019 +0200 +++ b/mod_register_web/mod_register_web.lua Sat Sep 28 21:26:28 2019 +0200 @@ -101,7 +101,7 @@ }; end function verify_captcha(request, form, callback) - if hmac_sha1(secret, form.captcha_reply, true) == form.captcha_challenge then + if hmac_sha1(secret, form.captcha_reply or "", true) == form.captcha_challenge then callback(true); else callback(false, "Captcha verification failed");