From ddb7e869ebad4ee411c2dae8daa0c3c4110528a0 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Thu, 15 Jun 2023 06:21:53 +0700 Subject: [PATCH] fix registration hook --- lib/register-authenticator.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/register-authenticator.js b/lib/register-authenticator.js index 60b03ed..0357128 100644 --- a/lib/register-authenticator.js +++ b/lib/register-authenticator.js @@ -189,7 +189,10 @@ const digestChallenge = async(req, res, next) => { const {stats} = req.srf.locals; const { account_sid, - registration_hook, + registration_hook_url, + registration_hook_method, + registration_hook_username, + registration_hook_password, webhook_secret } = req.locals; // Cannot detect account, reject register request