Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix dashboard bug for invalid token, added dev mode for captcha #3410

Merged
merged 6 commits into from
Oct 27, 2023

Conversation

siddhart1o1
Copy link
Member

No description provided.

geetest_validate: "mockValidate",
geetest_seccode: "mockSecCode",
}
const res = await sendPhoneCode(mockCaptchaResult, formData)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe I'm not understanding the code correctly, but there is no need to fetch the sendPhoneCode endpoint in dev mode, because no code is been sent.

the action should be as simple as moving to the next screen instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this, we are just sending mock data. I thought this would mimic production mode better, but yes, we can just redirect.

Copy link
Member

@nicolasburtey nicolasburtey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to change the logic on this PR

apps/consent/env.ts Outdated Show resolved Hide resolved
apps/dashboard/.env Outdated Show resolved Hide resolved
@siddhart1o1 siddhart1o1 force-pushed the chore--dashboard-bugs-added-dev-captcha branch 2 times, most recently from 0fc66eb to 4b36155 Compare October 27, 2023 07:30
@siddhart1o1 siddhart1o1 force-pushed the chore--dashboard-bugs-added-dev-captcha branch from 4b36155 to e721a9e Compare October 27, 2023 09:23
@siddhart1o1 siddhart1o1 merged commit 35c0711 into main Oct 27, 2023
17 checks passed
siddhart1o1 added a commit that referenced this pull request Oct 28, 2023
#3410)

* chore: fix display dashboard bug for invalid token, added dev mode for captcha

rebase

rebase

* chore: changes in captcha dev mode

* chore: addressing comments

rebase

rebase

* fix: next_auth_url port

* fix; price notation for small amount

* chore: misc chagnes

---------

Co-authored-by: Siddharth <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants