mirror of
https://github.com/freedbygrace/DynamoDNS.git
synced 2026-09-03 22:25:20 +00:00
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
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ export const CONFIG = {
|
|||||||
LOCAL_AUTH_ENABLED: process.env.LOCAL_AUTH_ENABLED !== 'false', // Enabled by default
|
LOCAL_AUTH_ENABLED: process.env.LOCAL_AUTH_ENABLED !== 'false', // Enabled by default
|
||||||
DISABLE_REGISTRATION: process.env.ENABLE_REGISTRATION !== 'true', // Disabled by default
|
DISABLE_REGISTRATION: process.env.ENABLE_REGISTRATION !== 'true', // Disabled by default
|
||||||
DEFAULT_ADMIN_USERNAME: process.env.DEFAULT_ADMIN_USERNAME || 'admin',
|
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',
|
DEFAULT_ADMIN_EMAIL: process.env.DEFAULT_ADMIN_EMAIL || 'admin@example.com',
|
||||||
|
|
||||||
// LDAP configuration
|
// LDAP configuration
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ export class ImprovedDatabaseStorage implements IStorage {
|
|||||||
const customer = await this.createCustomer(defaultCustomer);
|
const customer = await this.createCustomer(defaultCustomer);
|
||||||
|
|
||||||
// Create admin user with proper password hashing
|
// Create admin user with proper password hashing
|
||||||
const adminPassword = await hashPassword("password");
|
const adminPassword = await hashPassword("admin123");
|
||||||
|
|
||||||
const adminUser: InsertUser = {
|
const adminUser: InsertUser = {
|
||||||
username: "admin",
|
username: "admin",
|
||||||
|
|||||||
Reference in New Issue
Block a user