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

[Linux] Check if Fingerprints are available in canAuthenticate #9

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

prateekmedia
Copy link
Contributor

@prateekmedia prateekmedia commented Feb 14, 2024

Currently canAuthenticate will return true on any system with fprintd installed, and Ubuntu comes with it preinstalled.

This PR let's check the status code of "fprintd-list $USER" command, if it is successful i.e. fprint exists then it returns 0 else it returns 1 as status code, if fprintd is not installed status code is 127.

@prateekmedia prateekmedia changed the title [FIX] Really check if authenticate is possible by listing available fprints [FIX] (Linux) Really check if authenticate is possible by listing available fprints Feb 14, 2024
@prateekmedia prateekmedia changed the title [FIX] (Linux) Really check if authenticate is possible by listing available fprints [Linux] Check if Fingerprints are available in canAuthenticate Feb 14, 2024
@eaceto
Copy link
Owner

eaceto commented Feb 14, 2024

Thank you very much for your contribution.

@eaceto eaceto merged commit 1ac346a into eaceto:main Feb 14, 2024
2 checks passed
@prateekmedia
Copy link
Contributor Author

@eaceto waiting for new release...

@prateekmedia prateekmedia deleted the patch-1 branch February 14, 2024 12:27
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.

2 participants