Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
aeb16995
Commit
aeb16995
authored
Aug 22, 2025
by
adadachao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up -- Invalid reCAPTCHA response
parent
ece6b65d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
5 deletions
+31
-5
ExportCSV.tsx
ui/advancedFilter/ExportCSV.tsx
+6
-1
MyProfileEmail.tsx
ui/myProfile/MyProfileEmail.tsx
+6
-1
AuthModalScreenEmail.tsx
ui/snippets/auth/screens/AuthModalScreenEmail.tsx
+7
-1
AuthModalScreenOtpCode.tsx
ui/snippets/auth/screens/AuthModalScreenOtpCode.tsx
+6
-1
TokenInstanceMetadataFetcher.tsx
ui/tokenInstance/TokenInstanceMetadataFetcher.tsx
+6
-1
No files found.
ui/advancedFilter/ExportCSV.tsx
View file @
aeb16995
...
...
@@ -48,7 +48,12 @@ const ExportCSV = ({ filters }: Props) => {
try
{
setIsLoading
(
true
);
const
response
=
await
recaptcha
.
fetchProtectedResource
(
apiFetchFactory
);
// const response = await recaptcha.fetchProtectedResource(apiFetchFactory);
const
token
=
await
recaptcha
.
executeAsync
();
if
(
!
token
)
{
throw
new
Error
(
'
ReCaptcha is not solved
'
);
}
const
response
=
await
recaptcha
.
fetchProtectedResource
(
apiFetchFactory
,
token
);
const
blob
=
await
response
.
blob
();
const
fileName
=
`export-filtered-txs-
${
dayjs
().
format
(
'
YYYY-MM-DD-HH-mm-ss
'
)
}
.csv`
;
...
...
ui/myProfile/MyProfileEmail.tsx
View file @
aeb16995
...
...
@@ -60,7 +60,12 @@ const MyProfileEmail = ({ profileQuery }: Props) => {
const
onFormSubmit
:
SubmitHandler
<
FormFields
>
=
React
.
useCallback
(
async
(
formData
)
=>
{
try
{
await
recaptcha
.
fetchProtectedResource
(
authFetchFactory
(
formData
.
email
));
// await recaptcha.fetchProtectedResource(authFetchFactory(formData.email));
const
token
=
await
recaptcha
.
executeAsync
();
if
(
!
token
)
{
throw
new
Error
(
'
ReCaptcha is not solved
'
);
}
await
recaptcha
.
fetchProtectedResource
(
authFetchFactory
(
formData
.
email
),
token
);
mixpanel
.
logEvent
(
mixpanel
.
EventTypes
.
ACCOUNT_LINK_INFO
,
{
Source
:
'
Profile
'
,
Status
:
'
OTP sent
'
,
...
...
ui/snippets/auth/screens/AuthModalScreenEmail.tsx
View file @
aeb16995
...
...
@@ -51,7 +51,13 @@ const AuthModalScreenEmail = ({ onSubmit, isAuth, mixpanelConfig }: Props) => {
const
onFormSubmit
:
SubmitHandler
<
EmailFormFields
>
=
React
.
useCallback
(
async
(
formData
)
=>
{
try
{
await
recaptcha
.
fetchProtectedResource
(
sendCodeFetchFactory
(
formData
.
email
));
// await recaptcha.fetchProtectedResource(sendCodeFetchFactory(formData.email));
// Ensure initial token is present for endpoints that always require reCAPTCHA
const
token
=
await
recaptcha
.
executeAsync
();
if
(
!
token
)
{
throw
new
Error
(
'
ReCaptcha is not solved
'
);
}
await
recaptcha
.
fetchProtectedResource
(
sendCodeFetchFactory
(
formData
.
email
),
token
);
if
(
isAuth
)
{
mixpanelConfig
?.
account_link_info
.
source
!==
'
Profile
'
&&
mixpanel
.
logEvent
(
mixpanel
.
EventTypes
.
ACCOUNT_LINK_INFO
,
{
...
...
ui/snippets/auth/screens/AuthModalScreenOtpCode.tsx
View file @
aeb16995
...
...
@@ -84,7 +84,12 @@ const AuthModalScreenOtpCode = ({ email, onSuccess, isAuth }: Props) => {
try
{
formApi
.
clearErrors
(
'
code
'
);
setIsCodeSending
(
true
);
await
recaptcha
.
fetchProtectedResource
(
resendCodeFetchFactory
);
// await recaptcha.fetchProtectedResource(resendCodeFetchFactory);
const
token
=
await
recaptcha
.
executeAsync
();
if
(
!
token
)
{
throw
new
Error
(
'
ReCaptcha is not solved
'
);
}
await
recaptcha
.
fetchProtectedResource
(
resendCodeFetchFactory
,
token
);
toaster
.
success
({
title
:
'
Success
'
,
...
...
ui/tokenInstance/TokenInstanceMetadataFetcher.tsx
View file @
aeb16995
...
...
@@ -60,7 +60,12 @@ const TokenInstanceMetadataFetcher = ({ hash, id }: Props) => {
const
initializeUpdate
=
React
.
useCallback
(
async
()
=>
{
try
{
await
recaptcha
.
fetchProtectedResource
(
apiFetchFactory
);
// await recaptcha.fetchProtectedResource(apiFetchFactory);
const
token
=
await
recaptcha
.
executeAsync
();
if
(
!
token
)
{
throw
new
Error
(
'
ReCaptcha is not solved
'
);
}
await
recaptcha
.
fetchProtectedResource
(
apiFetchFactory
,
token
);
setStatus
?.(
'
WAITING_FOR_RESPONSE
'
);
toaster
.
loading
({
id
:
TOAST_ID
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment