diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-03-08 23:05:19 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-03-08 23:05:19 +0530 |
commit | 0fa2521592ae5e2e3918073bc7fcd0e102749f4d (patch) | |
tree | 04fa1a6063f8048337de4ca05c254a026171dece /app/src/main | |
parent | d8dbe74d3a6666dc2cc997e18e802e4a14a344d7 (diff) |
fix: also swallow retry attempts in SSHJ biometric auth
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt b/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt index 38cc6a5b..7ee34404 100644 --- a/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt +++ b/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt @@ -15,6 +15,7 @@ import app.passwordstore.ui.sshkeygen.SshKeyImportActivity import app.passwordstore.util.auth.BiometricAuthenticator import app.passwordstore.util.auth.BiometricAuthenticator.Result.Cancelled import app.passwordstore.util.auth.BiometricAuthenticator.Result.Failure +import app.passwordstore.util.auth.BiometricAuthenticator.Result.Retry import app.passwordstore.util.auth.BiometricAuthenticator.Result.Success import app.passwordstore.util.git.GitCommandExecutor import app.passwordstore.util.git.sshj.SshAuthMethod @@ -172,7 +173,7 @@ abstract class GitOperation(protected val callingActivity: FragmentActivity) { callingActivity, R.string.biometric_prompt_title_ssh_auth ) { result -> - if (result !is Failure) cont.resume(result) + if (result !is Failure && result !is Retry) cont.resume(result) } } } |