Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
Add periodic log to remind user to enter pw
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredKarrer authored and Bernard Labno committed Sep 19, 2019
1 parent 31fb880 commit e885885
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions api/src/main/java/bisq/api/http/app/HttpApiHeadlessApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

import bisq.core.app.BisqHeadlessApp;

import bisq.common.Timer;
import bisq.common.UserThread;
import bisq.common.setup.UncaughtExceptionHandler;

import lombok.extern.slf4j.Slf4j;
Expand All @@ -37,8 +39,17 @@ protected void setupHandlers() {
bisqSetup.setRequestWalletPasswordHandler(aesKeyHandler -> {
log.info("onRequestWalletPasswordHandler");

// Add a periodic log so that users get reminded to enter the pw
Timer reminder = UserThread.runPeriodically(() -> {
log.info("Awaiting user's wallet password to be entered via API call");
}, 10);


// TODO @bernard listen for users input of pw, create aseKey and call handler
// aesKeyHandler.accept(aseKey);
// Once pw is entered we stop periodic log
// reminder.stop();


// here is code from UI
/* String password = passwordTextField.getText();
Expand Down

0 comments on commit e885885

Please sign in to comment.