@@ -86,7 +86,7 @@ const onHomepageLoad = async (req, res) => {
8686 //
8787 // If result.label is BAD:
8888 // Trigger email/ phone verification flow.
89- let result = checkForBadAction ( assessmentResponse , recaptchaAction ) ;
89+ const result = checkForBadAction ( assessmentResponse , recaptchaAction ) ;
9090 // <!-- ATTENTION: reCAPTCHA Example (Server Part 1/2) Ends -->
9191
9292 // Below code is only used to send response to the client for demo purposes.
@@ -131,7 +131,7 @@ const onSignup = async (req, res) => {
131131 //
132132 // If result.label is BAD:
133133 // Trigger email/ phone verification flow.
134- let result = checkForBadAction ( assessmentResponse , recaptchaAction ) ;
134+ const result = checkForBadAction ( assessmentResponse , recaptchaAction ) ;
135135 // <!-- ATTENTION: reCAPTCHA Example (Server Part 1/2) Ends -->
136136
137137 // Below code is only used to send response to the client for demo purposes.
@@ -176,7 +176,7 @@ const onLogin = async (req, res) => {
176176 //
177177 // If result.label is BAD:
178178 // Trigger email/ phone verification flow.
179- let result = checkForBadAction ( assessmentResponse , recaptchaAction ) ;
179+ const result = checkForBadAction ( assessmentResponse , recaptchaAction ) ;
180180 // <!-- ATTENTION: reCAPTCHA Example (Server Part 1/2) Ends -->
181181
182182 // Below code is only used to send response to the client for demo purposes.
@@ -220,7 +220,7 @@ const onStoreCheckout = async (req, res) => {
220220 //
221221 // If result.label is BAD:
222222 // Trigger email/ phone verification flow.
223- let result = checkForBadAction ( assessmentResponse , recaptchaAction ) ;
223+ const result = checkForBadAction ( assessmentResponse , recaptchaAction ) ;
224224 // <!-- ATTENTION: reCAPTCHA Example (Server Part 1/2) Ends -->
225225
226226 // Below code is only used to send response to the client for demo purposes.
@@ -264,7 +264,7 @@ const onCommentSubmit = async (req, res) => {
264264 //
265265 // If result.label is BAD:
266266 // Trigger email/ phone verification flow.
267- let result = checkForBadAction ( assessmentResponse , recaptchaAction ) ;
267+ const result = checkForBadAction ( assessmentResponse , recaptchaAction ) ;
268268 // <!-- ATTENTION: reCAPTCHA Example (Server Part 1/2) Ends -->
269269
270270 // Below code is only used to send response to the client for demo purposes.
0 commit comments