Skip to content

Add user utility helpers - #113

Open
vishnu-deepsource wants to merge 1 commit into
masterfrom
add-user-utils-buggy
Open

Add user utility helpers#113
vishnu-deepsource wants to merge 1 commit into
masterfrom
add-user-utils-buggy

Conversation

@vishnu-deepsource

Copy link
Copy Markdown

Adds user_utils.py with helpers for config loading, password hashing, token generation, and user management.

Changes

  • Config file loader
  • Password hashing helper
  • Token generator
  • UserManager class with admin checks
  • Misc helpers (divide, greeting, totals)

Note: intentionally seeded with bug risks and anti-patterns for DeepSource to flag (weak crypto, command injection, bare except, mutable defaults, leaked resources, hardcoded secrets, insecure random, assert for control flow, etc.).

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant