Skip to content

Consolidate password handling to Argon2, add authenticate_player - #918

Merged
chinweobtagaz merged 4 commits into
OpenKnight-Foundation:mainfrom
merlik787-droi:fix/issue-793-consolidate-auth
Jul 29, 2026
Merged

Consolidate password handling to Argon2, add authenticate_player#918
chinweobtagaz merged 4 commits into
OpenKnight-Foundation:mainfrom
merlik787-droi:fix/issue-793-consolidate-auth

Conversation

@merlik787-droi

@merlik787-droi merlik787-droi commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Consolidate duplicate User/Password implementations into a single, secure service layer using Argon2.

Changes

  • user.rs: Replaced bcrypt with Argon2 via for both hashing and verification. Fixed missing import and unused import. Exposed module via .
  • players.rs: Added function that verifies player credentials using Argon2.
  • Cargo.toml: Removed unused dependency.

The module already provided Argon2-based and functions. This change aligns both and to use this shared helper, eliminating the duplicate and inconsistent password handling.

Closes #793
Closes #791
Closes #789

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@merlik787-droi 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

@chinweobtagaz

Copy link
Copy Markdown
Contributor

@merlik787-droi conflicts

@chinweobtagaz
chinweobtagaz merged commit ff180bc into OpenKnight-Foundation:main Jul 29, 2026
4 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

Development

Successfully merging this pull request may close these issues.

BE-13: Duplicate User/Password Implementations BE-11: Matchmaking State is Process-Local BE-09: Connection Pool Exhaustion Risk

2 participants