diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-10-06 11:10:11 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-10-06 11:10:11 +0200 |
commit | a0f9a3dabdb4cdfbbb2257b9e6277d4c5fee4a34 (patch) | |
tree | 767c9527e2b31135cd8f0775e2680562f1ef45a8 /pdf-over-gui/src/main/java | |
parent | 434ad00d88ce24785b9d9edbcd03ffa562fd8a4e (diff) | |
download | pdf-over-a0f9a3dabdb4cdfbbb2257b9e6277d4c5fee4a34.tar.gz pdf-over-a0f9a3dabdb4cdfbbb2257b9e6277d4c5fee4a34.tar.bz2 pdf-over-a0f9a3dabdb4cdfbbb2257b9e6277d4c5fee4a34.zip |
add "remember credentials" with new mobilebku
Diffstat (limited to 'pdf-over-gui/src/main/java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java index 995cc537..ab3bd31d 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java @@ -286,6 +286,11 @@ public class MobileBKUConnector implements BkuSlConnector { * @return the next request to make, or null if the current response should be returned */ private @Nonnull ClassicHttpRequest presentResponseToUserAndReturnNextRequest(@Nonnull ATrustParser.HTMLResult html) throws UserCancelledException { + if ((html.errorBlock == null) && (html.usernamePasswordBlock == null)) { /* successful username/password auth */ + if ((this.credentials.username != null) && (this.credentials.password != null)) + state.rememberCredentialsIfNecessary(this.credentials); + } + if (html.errorBlock != null) { try { this.credentials.password = null; |