From 97ade449dd0ba0f0b9577de325b771ff433f0a74 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Fri, 4 Nov 2022 11:18:24 +0100 Subject: clean remembered password on user cancel --- .../main/java/at/asit/pdfover/gui/workflow/states/SigningState.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java index b02ac057..cf4d6d37 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java @@ -104,7 +104,9 @@ public class SigningState extends State { } } if (this.threadException instanceof UserCancelledException) { - // don't display error, go back to BKU Selection + // don't display error, clear remembered password and go back to BKU Selection + if (this.getConfig().getRememberMobilePassword()) + this.getConfig().setDefaultMobilePasswordOverlay(null); this.setNextState(new BKUSelectionState(getStateMachine())); return; } -- cgit v1.2.3