Fixed in https://github.com/badbundle/vault-app/pull/660 (merged as b477511e).
Decision: the second option. On a device with no passcode, Face ID or Touch ID, these four places now say to set up a passcode on the device instead of showing "Authentication Failed", and they don't prompt:
- the Restore page
- the Backup Password sheet
- the Danger Zone
- deleting a set-aside vault, which had the same problem
Why not let them through: the rest of the app already chose this:
- A locked item says "Passcode Required: Set up a passcode on this device to view this item."
- A new recovery phrase shows a "Passcode Required" screen.
- App Lock says "Set up a passcode on this device to use App Lock."
- The backup password sits in the keychain with
.userPresence, so backups need a passcode anyway.
Letting these through would relax four gates that C4 relies on for the unattended device. The cost is the regression described above: restoring into an empty vault now needs a passcode.
How it works:
- The Restore page checks again whenever it locks, and it locks when the app goes to the background, so a passcode set up in the Settings app is noticed on return.
- New view-model tests, plus 12 new snapshots.
If you'd rather let these through without a passcode instead, that's a small follow-up.