summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-10-06 11:10:11 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-10-06 11:10:11 +0200
commita0f9a3dabdb4cdfbbb2257b9e6277d4c5fee4a34 (patch)
tree767c9527e2b31135cd8f0775e2680562f1ef45a8 /pdf-over-gui/src/main/java/at/asit/pdfover/gui
parent434ad00d88ce24785b9d9edbcd03ffa562fd8a4e (diff)
downloadpdf-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/at/asit/pdfover/gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java5
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;