Skip to content

Conversation

@mihf05
Copy link

@mihf05 mihf05 commented May 22, 2025

  • Added change-password.js script for changing user passwords with bcrypt hashing.
  • Added create-admin.js script to create an admin user if it doesn't already exist.
  • Added list-users.js script to list all users in the database.
  • Updated package.json to include bcrypt for password hashing and added testing libraries.
  • Updated ts-jest version and ensured prompts is using a caret version for flexibility.
- Added `change-password.js` script for changing user passwords with bcrypt hashing.
- Added `create-admin.js` script to create an admin user if it doesn't already exist.
- Added `list-users.js` script to list all users in the database.
- Updated `package.json` to include `bcrypt` for password hashing and added testing libraries.
- Updated `ts-jest` version and ensured `prompts` is using a caret version for flexibility.
@vercel
Copy link

vercel bot commented May 22, 2025

@mihf05 is attempting to deploy a commit to the umami-software Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Added new user management scripts for password management and admin user creation, utilizing bcrypt for secure password hashing and Prisma for database operations.

  • scripts/change-password.js implements secure password changing with interactive CLI prompts and 8-character minimum validation
  • scripts/create-admin.js creates default admin user with hardcoded credentials (security concern)
  • scripts/list-users.js appears misnamed as it contains admin creation code instead of user listing functionality
  • Added bcrypt dependency while retaining bcryptjs, creating potential package duplication
  • Added testing libraries and updated ts-jest version in package.json

💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!

4 file(s) reviewed, 7 comment(s)
Edit PR Review Bot Settings | Greptile

mihf05 and others added 5 commits May 23, 2025 02:54
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant