feat: setup docker and push project to remote
This commit is contained in:
18
scripts/fix-password.js
Normal file
18
scripts/fix-password.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const { PrismaClient } = require('@prisma/client');
|
||||
const bcrypt = require('bcryptjs');
|
||||
|
||||
async function main() {
|
||||
const prisma = new PrismaClient();
|
||||
|
||||
const hash = await bcrypt.hash('Android@2020', 10);
|
||||
|
||||
await prisma.user.updateMany({
|
||||
where: { role: 'SUPER_ADMIN' },
|
||||
data: { password: hash }
|
||||
});
|
||||
|
||||
console.log('Senha atualizada com sucesso!');
|
||||
await prisma.$disconnect();
|
||||
}
|
||||
|
||||
main();
|
||||
Reference in New Issue
Block a user