Title:
Google reCAPTCHA
Position:
header
Code:
<script src="https://www.google.com/recaptcha/enterprise.js?render=6LfR14wnAAAAAI383UyEnkM7j8kKJ8PyYkexs1pe"></script>
<script>
function onClick(e) {
e.preventDefault();
grecaptcha.enterprise.ready(async () => {
const token = await grecaptcha.enterprise.execute('6LfR14wnAAAAAI383UyEnkM7j8kKJ8PyYkexs1pe', {action: 'LOGIN'});
// IMPORTANT: The 'token' that results from execute is an encrypted response sent by
// reCAPTCHA Enterprise to the end user's browser.
// This token must be validated by creating an assessment.
// See https://cloud.google.com/recaptcha-enterprise/docs/create-assessment
});
}
</script>
Page:
All