Closed phahulin closed 6 years ago
if postcard was sent successfully, session key is removed
https://github.com/poanetwork/poa-popa/blob/master/web-dapp/routes/notify_reg_tx.js#L37-L40
so unlocking makes sense only if some error happened, probably we can add logic to unlock at the end of each request && on web-app restart (for uncaught exceptions).
Maybe there is a better way
https://github.com/poanetwork/poa-popa/blob/e259cec1fcfcfdff30a52bffb395d845c774855b/web-dapp/controllers/notifyRegTx.js#L47-L53
There is no way to unlock the session after it's locked. If some error happen during the workflow execution or web server crashes and is restarted, user won't be able to try again.