Skip to content

Commit

Permalink
Remove logs and add CSS to hide Google Recaptcha
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMalfait committed Apr 25, 2024
1 parent 2d38128 commit 8bc7e30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/twenty-front/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ body {
html {
font-size: 13px;
}

/* https://stackoverflow.com/questions/44543157/how-to-hide-the-google-invisible-recaptcha-badge */
.grecaptcha-badge {
visibility: hidden !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ export const useSignInUp = (form: UseFormReturn<Form>) => {
const getCaptchaToken = useCallback(async () => {
setIsGeneratingCaptchaToken(true);
try {
console.log(isCaptchaScriptLoaded);
const captchaToken = await generateCaptchaToken(isCaptchaScriptLoaded);
console.log(captchaToken);
if (!isUndefinedOrNull(captchaToken)) {
form.setValue('captchaToken', captchaToken);
}
Expand Down

0 comments on commit 8bc7e30

Please sign in to comment.