New feature to lock account if there are 3 attempts to log into account with incorrect pin.
This PR is for the Nautilus Wallet backend web-server.
Implementation plan:
web-server:
add account_attempts: u32 to WalletStorable
when open_wallet is called, increase account_attempts by 1 if open_wallet fails for incorrect pin
when open_wallet succeeds, reset account_attempts to 0
when create_wallet is called for new wallet initialize account_attempts to 0
for existing accounts, if account_attempts is none, or not there, add it to WalletStorable when open_wallet is called
when open_wallet is called and account_attempts is equal to 3 or greater (should not be possible), return Account Lock Error with message: “You have failed to enter the correct pin 3 times. Please reset your pin in order to access your account.“ even if the pin is correct
when pin_reset is called and OTP is successful, set new pin and reset account_attempts to 0.
https://ntls.atlassian.net/browse/NW-203?atlOrigin=eyJpIjoiZDg2Y2U1YjY1N2FiNGQ1ZGFkMDYxYmYxNDFhZjMxMzUiLCJwIjoiaiJ9
New feature to lock account if there are 3 attempts to log into account with incorrect pin.
This PR is for the Nautilus Wallet backend web-server.
Implementation plan: web-server: