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

Passcode activity enhanced with biometric authentication #1905

Closed
wants to merge 3 commits into from

Conversation

Aditya-gupta99
Copy link
Collaborator

Fixes #1904

demo.mp4

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Apply the MifosStyle.xml style template to your code in Android Studio.

  • Run the unit tests with ./gradlew check to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them.

* Upstream sdk version is needed to compile the imported libraries

Signed-off-by: aditya-gupta99 <[email protected]>
@Aditya-gupta99
Copy link
Collaborator Author

@avinash14022002 Now the PR has been separated, please review it.

@@ -34,6 +35,20 @@ class PassCodeActivity : MifosPassCodeActivity() {
currPassCode = it.getStringExtra(Constants.CURR_PASSWORD)
isToUpdatePassCode = it.getBooleanExtra(Constants.IS_TO_UPDATE_PASS_CODE, false)
}
if(findViewById<AppCompatButton>(R.id.btn_save).text.equals("Login with biometric")){
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Aditya-gupta99 ,
Please use butter knife currently

BiometricAuthentication(this).authenticateWithBiometrics()
}
if(BiometricAuthentication(this).getBiometricCapabilities()==BiometricCapability.HAS_BIOMETRIC_AUTH){
val btn=findViewById<AppCompatButton>(R.id.btn_save)
Copy link
Collaborator

@avivijay19 avivijay19 Jun 6, 2023

Choose a reason for hiding this comment

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

butterknife
please use proper naming variable

}
}
} else {
TODO("VERSION.SDK_INT < P")
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Aditya-gupta99
what is expected here?

Copy link
Collaborator

@avivijay19 avivijay19 left a comment

Choose a reason for hiding this comment

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

@Aditya-gupta99,
Please do change needful changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passcode activity can be enhanced with fingerprint authentication.
2 participants