Skip to content

Instantly share code, notes, and snippets.

@franzwong
Last active March 22, 2020 03:08
Show Gist options
  • Save franzwong/27ee34b20e09136859ec74591fa6f824 to your computer and use it in GitHub Desktop.
Save franzwong/27ee34b20e09136859ec74591fa6f824 to your computer and use it in GitHub Desktop.
HowTo: Integrate Google reCAPTCHA with AWS Cognito
<!DOCTYPE html>
<html>
<body>
<script src="https://www.google.com/recaptcha/api.js?render=Your_Recaptcha_Site_Key"></script>
<h2>Sign up</h2>
<form id="signup-form">
<div>
<input type="email" name="username" placeholder="Email">
</div>
<div>
<input type="password" name="password" placeholder="Password">
</div>
<div>
<input type="text" name="given_name" placeholder="Given name">
</div>
<div>
<input type="text" name="family_name" placeholder="Family name">
</div>
<input type="submit" value="Sign up">
</form>
<script src="index.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment