mirror of
https://gitea.gofwd.group/sean/gunbuilder-next-tailwind.git
synced 2025-12-06 02:56:45 -05:00
/admin and with working with db. data is pulling from db
This commit is contained in:
12
hash-password.js
Normal file
12
hash-password.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const bcrypt = require('bcryptjs');
|
||||
|
||||
const password = process.argv[2];
|
||||
if (!password) {
|
||||
console.error('Usage: node hash-password.js <password>');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
bcrypt.hash(password, 10, (err, hash) => {
|
||||
if (err) throw err;
|
||||
console.log('Hashed password:', hash);
|
||||
});
|
||||
Reference in New Issue
Block a user