From c7e732e3f5b5cccc6f7dd0c59350e8714faa66b1 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Thu, 14 Jul 2022 11:27:19 +0200 Subject: hook the remember credentials functionality up --- .../at/asit/pdfover/gui/workflow/states/MobileBKUState.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java index d5f5cbe0..020ead33 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java @@ -186,6 +186,19 @@ public class MobileBKUState extends State { }); } + public void rememberCredentialsIfNecessary() { + if (getStateMachine().configProvider.getRememberMobilePassword()) + { + getStateMachine().configProvider.setDefaultMobileNumberOverlay(status.phoneNumber); + getStateMachine().configProvider.setDefaultMobilePasswordOverlay(status.mobilePassword); + } + } + + public void clearRememberedCredentials() { + getStateMachine().configProvider.setDefaultMobilePasswordOverlay(null); + status.mobilePassword = null; + } + /** * Make sure phone number and password are set in the MobileBKUStatus */ -- cgit v1.2.3