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:
10
check_hash_pw.js
Normal file
10
check_hash_pw.js
Normal 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
|
||||
});
|
||||
Reference in New Issue
Block a user