Skip to content

UCI-Chenli-teaching/cs122b-project3-recaptcha-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS 122B Project 3 reCAPTCHA example

This example shows how to add reCAPTCHA to your frontend and backend.

To run this example:

  1. Clone this repository.
  2. Open IntelliJ -> Open -> Choose the project you just cloned (The root path must contain the pom.xml!) -> The IntelliJ will load automatically.
  3. Get a reCAPTCHA from Google. v3 Admin Console -> Register a new site -> Choose Challenge (v2) -> Enter both your AWS public IP and "localhost" in "Domains" section -> Click "Submit"
  4. In src/RecaptchaConstants.java, replace YOUR_SECRET_KEY; with your own reCAPTCHA secret key.
  5. In WebContent/index.html, replace data-sitekey="YOUR_SITE_KEY" with your own reCAPTCHA site key.
  6. In src/FormRecaptcha.java, change the mysql username and password if you don't want to use mytestuser.
  7. You can run this project on Tomcat (both local machine and AWS).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published