Disable biometric login after 24 hours of last password login #971
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #951
Add logic to disable biometric login if the user has not logged in via password in the last 24 hours.
UserSettings.kt
lastPasswordLoginTime
attribute to track the last password login time.BiometricPrompt.kt
lastPasswordLoginTime
and disable biometric login if the last password login was more than 24 hours ago.updateLastBiometricLoginTime
to update the last biometric login time.AuthScreen.kt
lastPasswordLoginTime
when users log in via password.SharedPreferenceUtils.kt
updateLastBiometricLoginTime
andupdateLastPasswordLoginTime
to update the respective times inUserSettings
.ButtonBar.kt
lastPasswordLoginTime
when users log in via password.For more details, open the Copilot Workspace session.