/admin and with working with db. data is pulling from db

This commit is contained in:
2025-06-30 20:26:00 -04:00
parent 5c046874a8
commit b478d9797d
33 changed files with 1214 additions and 58 deletions

10
check_hash_pw.js Normal file
View File

@@ -0,0 +1,10 @@
const bcrypt = require('bcryptjs');
// Replace with your plaintext password and hash
const plaintextPassword = 'newpassword'; // <-- put your real password here
const hash = '$2b$10$n78/VuxwnDoOemWoqjVKnunz5PZy7SisG3VUhsPtQXKEEnMej6TWK';
bcrypt.compare(plaintextPassword, hash, (err, result) => {
if (err) throw err;
console.log('Password matches hash?', result); // true if matches, false if not
});