Files
ContentGen_BE/reset_pwd.js
T
Harun CAN 58832e99d1
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled
main
2026-05-09 05:57:56 +02:00

14 lines
417 B
JavaScript

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());