-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: Implement recaptcha verification during signup #2360
base: development
Are you sure you want to change the base?
Conversation
@@ -37,6 +42,7 @@ class SignUpActivity : AppCompatActivity(), ISignUpView { | |||
private lateinit var forgotPasswordProgressDialog: Dialog | |||
private lateinit var builder: AlertDialog.Builder | |||
private var checkDialog: Boolean = false | |||
private val RECAPTCHA_KEY = "6LcKhbMUAAAAAGFbYZeNFzqol-7EjOHUK5MvEeOE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
The build is failing✨ Good work on this PR so far! ✨ Unfortunately, the Circle CI build is failing as of 9c4f090. Here's the output:
|
The build is failing✨ Good work on this PR so far! ✨ Unfortunately, the Circle CI build is failing as of 1048cc2. Here's the output:
|
@iamareebjamal please add the API key. The build is failing because it's not getting the key. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot keep the API key in the app itself. This would be a security issue. It should be added during building of the app using Travis environment variables. Please implement it in that way.
Build should not fail if there is no API key The feature should only enable in presence of the API key |
I will update it accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See inline comments.
SafetyNet.getClient(this).verifyWithRecaptcha(RECAPTCHA_KEY) | ||
.addOnSuccessListener(this, OnSuccessListener { response -> | ||
val userResponseToken = response.tokenResult | ||
Log.d("KHANKI", "Started recaptcha verification") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atm1504 Please remove this.
val stringPassword = password.editText?.text.toString() | ||
val stringConfirmPassword = confirmPassword.editText?.text.toString() | ||
val stringURL = inputUrlSignUp.editText?.text.toString() | ||
Log.d("KHANKI", "Signned up") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atm1504 Please remove this.
Fixes #2350
Changes:
Screenshots for the change:
