Skip to content

fix(#744): extract verifyCredentials from login()#858

Merged
nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
Alqku:fix/issue-744-extract-verify-credentials
Jun 30, 2026
Merged

fix(#744): extract verifyCredentials from login()#858
nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
Alqku:fix/issue-744-extract-verify-credentials

Conversation

@Alqku

@Alqku Alqku commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Closes #744
Closes #743
Closes #745
Closes #746

Extracts post-findByEmail credential verification (account state gates + bcrypt password compare + rate-limit / fraud / lockout side effects) into a new private verifyCredentials(user, password, ip?, ua?) method. The login() method is now shorter and easier to read; verifyCredentials is independently testable.

  • All existing 43 auth tests still pass
  • TypeScript compiles cleanly
  • Lint clean on the changed file
  • No unrelated changes

@drips-wave

drips-wave Bot commented Jun 30, 2026

Copy link
Copy Markdown

@Alqku Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@nanaf6203-bit nanaf6203-bit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nanaf6203-bit nanaf6203-bit merged commit 8e5f44a into MettaChain:main Jun 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants