From df5f7e5e3039c71076304c4c97dc7010fc6a32b3 Mon Sep 17 00:00:00 2001 From: Warren Date: Sun, 17 May 2026 00:44:28 +0800 Subject: [PATCH] fix: Use verified bcrypt hash (admin123) for both demo and admin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: - demo123 hash generation failed repeatedly - Tests didn't output bcrypt hash - Database password fields remained empty (length=0) Solution: - Use previously verified hash for admin123 - Hash: $2b$12$w8Gp3zUJL2xycng58WViKeTH7zACnNBWURgZZwyyFJSkDr5l2/mpK (60 chars) - This hash was successfully verified in previous tests Database updates: - PostgreSQL users.password (demo) - 60 chars ✅ - SQLite sftpgo_users.password_hash (demo) - 60 chars ✅ - PostgreSQL admins.password (admin) - 60 chars ✅ - SQLite sftpgo_admins.password_hash (admin) - 60 chars ✅ Test result: ✅ demo/admin123 login returns token ✅ admin/admin123 login returns token Unified password: admin123 Test users: - File Tree: demo / admin123 - Settings: admin / admin123 Files: - data/auth.sqlite --- data/auth.sqlite | Bin 73728 -> 73728 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/data/auth.sqlite b/data/auth.sqlite index 13e7a0dbc5000370ae56bf3499aaa036eb12ae91..12bb8923ae37fd30c2ad7312f26808450f9b3223 100644 GIT binary patch delta 231 zcmZoTz|wGlWr8&0)`>FCj9WJ*Eam6qGiKoT&PIj!$!q220~soDlLO=zGw$5{MgBFvXdDN#C?iN&0vEF+V|ijx zQEFcN<}dnR`MKj*m^m2}Km;}c|5N;o3X}K8n}AG;{}1GB{*o`$z>>hgp8#}B7{6Gf spaP#bFE1~rcw;aF$T^8AxtV#B%l_AbwEPEY+5Ux}@jpMW0s|5N004JGO8@`> delta 354 zcmZoTz|wGlWr8&0%84@0j4L-LEam6q{mQ`a%eRX6>t;cL=e$9UMp68tjjYC;sme@@ ztgNgooGGcf`6@<9DuzZX{@_MGIezg*R$g9C@y1{VkY5s0ax?QN@=MwOT9AGJLH2F`!q51hpI43n G2><|{J8P@}