Fix bcrypt import in database.ts to use bcryptjs
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user