From a0f9a3dabdb4cdfbbb2257b9e6277d4c5fee4a34 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Thu, 6 Oct 2022 11:10:11 +0200 Subject: add "remember credentials" with new mobilebku --- .../src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v1.2.3