generated from fahricansecer/boilerplate-be
@@ -0,0 +1,13 @@
|
||||
const { PrismaClient } = require('@prisma/client');
|
||||
const bcrypt = require('bcrypt');
|
||||
const prisma = new PrismaClient();
|
||||
|
||||
async function main() {
|
||||
const hash = await bcrypt.hash('admin123', 10);
|
||||
await prisma.user.update({
|
||||
where: { email: 'admin@contentgen.ai' },
|
||||
data: { password: hash }
|
||||
});
|
||||
console.log("Password reset to admin123");
|
||||
}
|
||||
main().catch(console.error).finally(() => prisma.$disconnect());
|
||||
Reference in New Issue
Block a user