From c515e4a8d0c0e8f74684f83e6673c50363a5d9bc Mon Sep 17 00:00:00 2001 From: alphaeusmote <41258468-alphaeusmote@users.noreply.replit.com> Date: Fri, 11 Apr 2025 20:24:37 +0000 Subject: [PATCH] Fix default admin password Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9111ef36-26c8-4085-84ca-a35dc1fec1b5 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7083d608-d6d3-4a6a-9a27-6286c5109627/fd06e0bf-9a16-474a-8fb9-1949e2595d82.jpg --- server/auth.ts | 2 +- server/improved-database-storage.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/auth.ts b/server/auth.ts index 8bd74c2..6cacb20 100644 --- a/server/auth.ts +++ b/server/auth.ts @@ -17,7 +17,7 @@ export const CONFIG = { LOCAL_AUTH_ENABLED: process.env.LOCAL_AUTH_ENABLED !== 'false', // Enabled by default DISABLE_REGISTRATION: process.env.ENABLE_REGISTRATION !== 'true', // Disabled by default DEFAULT_ADMIN_USERNAME: process.env.DEFAULT_ADMIN_USERNAME || 'admin', - DEFAULT_ADMIN_PASSWORD: process.env.DEFAULT_ADMIN_PASSWORD || 'password', + DEFAULT_ADMIN_PASSWORD: process.env.DEFAULT_ADMIN_PASSWORD || 'admin123', DEFAULT_ADMIN_EMAIL: process.env.DEFAULT_ADMIN_EMAIL || 'admin@example.com', // LDAP configuration diff --git a/server/improved-database-storage.ts b/server/improved-database-storage.ts index 0035300..76d4bea 100644 --- a/server/improved-database-storage.ts +++ b/server/improved-database-storage.ts @@ -147,7 +147,7 @@ export class ImprovedDatabaseStorage implements IStorage { const customer = await this.createCustomer(defaultCustomer); // Create admin user with proper password hashing - const adminPassword = await hashPassword("password"); + const adminPassword = await hashPassword("admin123"); const adminUser: InsertUser = { username: "admin",