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
This commit is contained in:
alphaeusmote
2025-04-11 16:58:45 +00:00
parent 77a4468f8f
commit b407cab018
+4 -1
View File
@@ -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",