From b407cab01863f45c266feb2bdbfa988f24e2b30a Mon Sep 17 00:00:00 2001 From: alphaeusmote <41258468-alphaeusmote@users.noreply.replit.com> Date: Fri, 11 Apr 2025 16:58:45 +0000 Subject: [PATCH] Fix broken login authentication 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/16e55835-378e-471b-acc8-50d7d32fff3e.jpg --- server/storage.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/storage.ts b/server/storage.ts index 37dadf0..7d981c5 100644 --- a/server/storage.ts +++ b/server/storage.ts @@ -190,10 +190,13 @@ export class MemStorage implements IStorage { // Create organization synchronously to get its ID directly const org = this.createOrganizationSync(defaultOrg); + // Generate a properly hashed password that matches our auth system + const password = "ceb37858eae429c7460e3953bd612541e14c78eab805ab3c5be30dd81572b9669e154dfa320ca0fd67ab2b8c7af55124cf761178ebaef73e5eb73e9431eed84d.7e464ae80b7e8ab6639630035c6d37de"; + adminUser = { id: "1", username: "admin", - password: "hashed_password", // This would be properly hashed in production + password: password, email: "admin@example.com", fullName: "System Admin", role: "admin",