feat: added the recover your evault link when entering wrong PIN. Not…#995
Conversation
… based on the attempts.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe login page script is reformatted without changing authentication flow (globalState polling, sessionStorage biometric skip, biometric attempt, PIN validation, and continueAfterSuccessfulAuth). The wrong-PIN alert is restructured into an article and now shows an underlined recovery link to ChangesLogin Page Update with Recovery Option
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@infrastructure/eid-wallet/src/routes/`(auth)/login/+page.svelte:
- Around line 57-74: In verifyAndAdvance wrap the await
globalState.securityController.verifyPin(currentPin) call in a try/catch so any
thrown error resets isPostAuthLoading to false (and sets isError = true and
clears pin) before returning; ensure the catch prevents the function from
proceeding to continueAfterSuccessfulAuth and that isPostAuthLoading is always
cleared on both failure and exceptions so the signing-in overlay cannot become
stuck.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 5808b39f-94b8-44ce-ae86-5ccd8a5bcf98
⛔ Files ignored due to path filters (3)
infrastructure/eid-wallet/src-tauri/gen/android/.idea/deploymentTargetSelector.xmlis excluded by!**/gen/**infrastructure/eid-wallet/src-tauri/gen/android/.idea/gradle.xmlis excluded by!**/gen/**infrastructure/eid-wallet/src-tauri/gen/android/.idea/misc.xmlis excluded by!**/gen/**
📒 Files selected for processing (1)
infrastructure/eid-wallet/src/routes/(auth)/login/+page.svelte
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
… based on the attempts.
Description of change
added the recover your evault link when entering wrong PIN. It works for every time you enter wrong pin, irrespective of the number of attempts.
Issue Number
Closes #993
Type of change
How the change has been tested
Manually
Change checklist
Summary by CodeRabbit
New Features
Bug Fixes
Style