summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-11-04 10:39:06 +0100
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-11-04 10:39:06 +0100
commit56da4c50206ca64ed5e13735de38871ccc45eb70 (patch)
treec56a94b8953ae3e3e08c2ce04b2a568ceb6f9f17 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku
parent851fda341cc53b4aa61de6637917741f5508515c (diff)
downloadpdf-over-56da4c50206ca64ed5e13735de38871ccc45eb70.tar.gz
pdf-over-56da4c50206ca64ed5e13735de38871ccc45eb70.tar.bz2
pdf-over-56da4c50206ca64ed5e13735de38871ccc45eb70.zip
hide fido2 buttons if unsupported
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java2
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustParser.java2
2 files changed, 2 insertions, 2 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 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<String, String> 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;