From 56da4c50206ca64ed5e13735de38871ccc45eb70 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Fri, 4 Nov 2022 10:39:06 +0100 Subject: hide fido2 buttons if unsupported --- .../src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java | 2 +- .../src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustParser.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku') 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 6d7c2cd7..58762b03 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 @@ -285,7 +285,7 @@ public class MobileBKUConnector implements BkuSlConnector { private boolean wantsFido2Default; /** * Main lifting function for MobileBKU UX - * @return the next request to make, or null if the current response should be returned + * @return the next request to make */ private @Nonnull ClassicHttpRequest presentResponseToUserAndReturnNextRequest(@Nonnull ATrustParser.HTMLResult html) throws UserCancelledException { if ((html.errorBlock == null) && (html.usernamePasswordBlock == null)) { /* successful username/password auth */ diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustParser.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustParser.java index 7978187d..843a1881 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustParser.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustParser.java @@ -145,7 +145,7 @@ public class ATrustParser { private SMSTanBlock(@Nonnull org.jsoup.nodes.Document htmlDocument, @Nonnull Map formOptions) throws ComponentParseFailed { super(htmlDocument, formOptions); - abortIfElementMissing("#div_tan"); + abortIfElementMissing("#input_tan"); this.tanKey = getAttributeEnsureNotNull("#input_tan", "name"); this.referenceValue = ISNOTNULL(getElementEnsureNotNull("#vergleichswert").ownText()); this.errorMessage = null; -- cgit v1.2.3