mirror of
https://github.com/freedbygrace/DynamoDNS.git
synced 2026-07-26 11:38:13 +00:00
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:
+4
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user