-
Notifications
You must be signed in to change notification settings - Fork 4.9k
feat: add user management scripts and update dependencies #3447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- 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.
@mihf05 is attempting to deploy a commit to the umami-software Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this 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 validationscripts/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 retainingbcryptjs
, creating potential package duplication - Added testing libraries and updated
ts-jest
version inpackage.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
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>
change-password.js
script for changing user passwords with bcrypt hashing.create-admin.js
script to create an admin user if it doesn't already exist.list-users.js
script to list all users in the database.package.json
to includebcrypt
for password hashing and added testing libraries.ts-jest
version and ensuredprompts
is using a caret version for flexibility.