fix(auth): avoid panic on invalid password hash#152
Conversation
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. 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 |
|
duplicate #151 |
Motivation
Description
verify_passwordto returnfalseonPasswordHash::new(...)parse failure instead of callingexpect(...), and add a unit testtest_verify_password_invalid_hashto guard the behavior.Testing
cargo test -p server auth::tests::test_verify_passwordand the server tests passed; workspace-levelcargo testshowed unrelated failures incrates/ssl-expcaused by aNetwork is unreachablecondition.Codex Task
Summary by CodeRabbit