-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
feat: add recaptcha verification for user signup #3319
feat: add recaptcha verification for user signup #3319
Conversation
Fixes appsmithorg#2432 Fixes: appsmithorg#2429 Co-authored-by: Piyush Mishra <piyush@codeitout.com>
* Increased logs to debug future connection leaks. * Fetch a connection from the pool only if a query exists. * Minor comment added. * Minor rewrite * Code formatting. * Update app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com> * Added hikari cp pool stats to get database structure function as well. Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
# Conflicts: # app/client/cypress/integration/Smoke_TestSuite/Onboarding/Onboarding_spec.js # app/client/src/components/editorComponents/Onboarding/Tooltip.tsx # app/client/src/constants/OnboardingConstants.tsx # app/client/src/pages/Editor/Welcome.tsx # app/client/src/sagas/ActionExecutionSagas.ts # app/client/src/sagas/OnboardingSagas.ts
# Conflicts: # app/client/src/constants/messages.ts # app/client/src/sagas/ErrorSagas.tsx
(cherry picked from commit b1564c9)
(cherry picked from commit 828a9ae)
Release v1.3.2
…psmithorg#3051) * Fix potential input error on password generation This happens on macOS systems when a different locale is explicitly set. * Don't use a masked variable name (cherry picked from commit b26706c)
Co-authored-by: a <rishabh.robben@gmail.com>
Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
(cherry picked from commit b9cb76e)
* Push explicitly specified tags to Docker * Remove now stale comments (cherry picked from commit 215f1ed)
* Add more information for action execution * Add orgId and pageName to action execution data point (cherry picked from commit 6936a40)
app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/AppsmithError.java
Outdated
Show resolved
Hide resolved
...r/appsmith-server/src/main/java/com/appsmith/server/services/GoogleRecaptchaServiceImpl.java
Outdated
Show resolved
Hide resolved
app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/UserSignup.java
Outdated
Show resolved
Hide resolved
app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/UserController.java
Outdated
Show resolved
Hide resolved
999b106
to
f4916b1
Compare
app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/UserSignup.java
Outdated
Show resolved
Hide resolved
...r/appsmith-server/src/main/java/com/appsmith/server/services/GoogleRecaptchaServiceImpl.java
Outdated
Show resolved
Hide resolved
...r/appsmith-server/src/main/java/com/appsmith/server/services/GoogleRecaptchaServiceImpl.java
Outdated
Show resolved
Hide resolved
...r/appsmith-server/src/main/java/com/appsmith/server/services/GoogleRecaptchaServiceImpl.java
Outdated
Show resolved
Hide resolved
app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/UserController.java
Outdated
Show resolved
Hide resolved
...erver/appsmith-server/src/main/java/com/appsmith/server/services/GoogleRecaptchaService.java
Outdated
Show resolved
Hide resolved
@monarch0111 Thanks a lot for raising this PR! This was really quick & the code is also good. I've added a few minor comments. Please address them so that we can then merge this change in. |
6ad4513
to
214ee9e
Compare
@mohanarpit Thanks for thorough review. I have made most of the changes, |
bc5d36d
to
67ece23
Compare
@mohanarpit It had some merge conflict, I rebased it with master instead of release branch. Closed this in favour of #3383 |
## Description > Do not show Roles associated with Approval requests in User group details. #### PR fixes following issue(s) Fixes [[Bug]: Remove the Approval request roles from User Group and User Role Tab.](#30265) #### Media > A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video > > #### Type of change - Bug fix (non-breaking change which fixes an issue) ## Testing > #### How Has This Been Tested? - [x] Manual - [x] JUnit #### Test Plan > Add Testsmith test cases links that relate to this PR > > #### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) > > > ## Checklist: #### Dev activity - [x] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [ ] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed --------- Co-authored-by: Nilesh Sarupriya <20905988+nsarupr@users.noreply.github.com>
Description
configurations/GoogleRecaptchaConfig.java
services/GoogleRecaptchaService.java
services/GoogleRecaptchaServiceImpl.java
controllers/UserController.java
exceptions/AppsmithError.java
solutions/UserSignup.java
resources/application.properties
envs/dev.env.example
envs/docker.env.example
Fixes #803
Type of change
How Has This Been Tested?
APPSMITH_RECAPTCHA_ENABLED
,APPSMITH_RECAPTCHA_SITE_KEY,
APPSMITH_RECAPTCHA_SECRET_KEY` to .env filedata-sitekey
attribute with site-key obtained in first step & whitelist your domain on admin panel (Note: it doesn't support host+port config)Checklist:
TODOs: