Feature: PIN security for outgoing wallet payments #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add a PIN requirement for outgoing payments above a user-configurable threshold to prevent unauthorized spending.
User Story
As a user, I want to require a PIN before sending money (especially for larger amounts) so that I can protect my wallet from unauthorized access if someone gains access to my device.
Requirements
PIN Setup
Payment Flow
PIN Management
Storage
extrafieldTechnical Design
Data Structure (stored in user.extra.walletSecurity)
Files to Create
src/modules/wallet/types/security.ts- Type definitionssrc/modules/wallet/services/PinSecurityService.ts- Core servicesrc/modules/wallet/components/security/PinInput.vue- Reusable PIN inputsrc/modules/wallet/components/security/PinEntryDialog.vue- Payment authorizationsrc/modules/wallet/components/security/PinSetupDialog.vue- Setup wizardsrc/modules/wallet/components/security/PinResetDialog.vue- Reset flowsrc/modules/wallet/components/security/SecuritySettings.vue- Settings panelsrc/modules/wallet/composables/usePinSecurity.ts- Composable wrapperFiles to Modify
src/core/di-container.ts- Add PIN_SECURITY_SERVICE tokensrc/modules/base/auth/auth-service.ts- Add verifyPassword methodsrc/modules/wallet/components/SendDialog.vue- Integrate PIN checksrc/modules/wallet/index.ts- Register servicesrc/locales/en.json- Add translationsDependencies
Payment Flow Diagram
Security Considerations