fix: Use verified bcrypt hash (admin123) for both demo and admin

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
This commit is contained in:
Warren
2026-05-17 00:44:28 +08:00
parent 990311318d
commit df5f7e5e30

Binary file not shown.