@@ -119,9 +119,8 @@ public static ModelAndView home() {
119
119
try {
120
120
// <!-- ATTENTION: reCAPTCHA Example (Server Part 1/2) Starts -->
121
121
assessmentResponse = CreateAssessment .createAssessment (
122
- CONTEXT .get ("project_id" ),
123
- CONTEXT .get ("site_key" ),
124
- jsonData .get ("token" ));
122
+ CONTEXT .get ("project_id" ), CONTEXT .get ("site_key" ),
123
+ jsonData .get ("token" ), recaptchaAction );
125
124
126
125
// Check if the token is valid, score is above threshold score and the action equals expected.
127
126
// Take action based on the result (BAD / NOT_BAD).
@@ -172,9 +171,8 @@ public static ModelAndView signup() {
172
171
try {
173
172
// <!-- ATTENTION: reCAPTCHA Example (Server Part 1/2) Starts -->
174
173
assessmentResponse = CreateAssessment .createAssessment (
175
- CONTEXT .get ("project_id" ),
176
- CONTEXT .get ("site_key" ),
177
- jsonData .get ("token" ).toString ());
174
+ CONTEXT .get ("project_id" ), CONTEXT .get ("site_key" ),
175
+ jsonData .get ("token" ).toString (), recaptchaAction );
178
176
179
177
// Check if the token is valid, score is above threshold score and the action equals expected.
180
178
// Take action based on the result (BAD / NOT_BAD).
@@ -227,9 +225,8 @@ public static ModelAndView login() {
227
225
try {
228
226
// <!-- ATTENTION: reCAPTCHA Example (Server Part 1/2) Starts -->
229
227
assessmentResponse = CreateAssessment .createAssessment (
230
- CONTEXT .get ("project_id" ),
231
- CONTEXT .get ("site_key" ),
232
- jsonData .get ("token" ));
228
+ CONTEXT .get ("project_id" ), CONTEXT .get ("site_key" ),
229
+ jsonData .get ("token" ), recaptchaAction );
233
230
234
231
// Check if the token is valid, score is above threshold score and the action equals expected.
235
232
// Take action based on the result (BAD / NOT_BAD).
@@ -282,9 +279,8 @@ public static ModelAndView store() {
282
279
try {
283
280
// <!-- ATTENTION: reCAPTCHA Example (Server Part 1/2) Starts -->
284
281
assessmentResponse = CreateAssessment .createAssessment (
285
- CONTEXT .get ("project_id" ),
286
- CONTEXT .get ("site_key" ),
287
- jsonData .get ("token" ).toString ());
282
+ CONTEXT .get ("project_id" ), CONTEXT .get ("site_key" ),
283
+ jsonData .get ("token" ).toString (), recaptchaAction );
288
284
289
285
// Check if the token is valid, score is above threshold score and the action equals expected.
290
286
// Take action based on the result (BAD / NOT_BAD).
@@ -336,9 +332,8 @@ public static ModelAndView comment() {
336
332
try {
337
333
// <!-- ATTENTION: reCAPTCHA Example (Server Part 1/2) Starts -->
338
334
assessmentResponse = CreateAssessment .createAssessment (
339
- CONTEXT .get ("project_id" ),
340
- CONTEXT .get ("site_key" ),
341
- jsonData .get ("token" ));
335
+ CONTEXT .get ("project_id" ), CONTEXT .get ("site_key" ),
336
+ jsonData .get ("token" ), recaptchaAction );
342
337
343
338
// Check if the token is valid, score is above threshold score and the action equals expected.
344
339
// Take action based on the result (BAD / NOT_BAD).
0 commit comments