From 4172c70c86238d4b6c9181df31de71047749bffc Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Wed, 3 Jun 2020 10:08:47 +0200 Subject: Improve Git password/passphrase dialog behavior (#829) * Reset PasswordFinder retry state after authentication * Memorize password inbetween Git commands --- app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.kt') diff --git a/app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.kt b/app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.kt index 1fd5f9e5..188891bd 100644 --- a/app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.kt +++ b/app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.kt @@ -12,6 +12,7 @@ import android.os.AsyncTask import com.github.ajalt.timberkt.e import com.zeapo.pwdstore.PasswordStore import com.zeapo.pwdstore.R +import com.zeapo.pwdstore.git.config.SshjSessionFactory import net.schmizz.sshj.userauth.UserAuthException import org.eclipse.jgit.api.CommitCommand import org.eclipse.jgit.api.GitCommand @@ -147,6 +148,7 @@ class GitAsyncTask( if (refreshListOnEnd) { (activity as? PasswordStore)?.resetPasswordList() } + (SshSessionFactory.getInstance() as? SshjSessionFactory)?.clearCredentials() SshSessionFactory.setInstance(null) } -- cgit v1.2.3