Fix bcrypt import in database.ts to use bcryptjs

This commit is contained in:
Ryderjj89
2025-10-01 18:20:14 -04:00
parent 2416fec264
commit 64d2c7245e

View File

@@ -53,7 +53,7 @@ async function initializeDatabase(db: Database.Database) {
// Create default admin user if it doesn't exist
const config = useRuntimeConfig()
const bcrypt = await import('bcrypt')
const bcrypt = await import('bcryptjs')
const saltRounds = 10
const passwordHash = await bcrypt.hash(config.adminPassword, saltRounds)