From 683526c406cd854d5daee3e908d7e3191f3d18fb Mon Sep 17 00:00:00 2001 From: Warren Date: Sun, 17 May 2026 00:40:11 +0800 Subject: [PATCH] fix: Fix demo user password and eye icon position MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem 1: File Tree demo/demo123 login failed - demo user password hash was incorrect - PostgreSQL users.password was empty or invalid - SQLite sftpgo_users.password_hash was empty or invalid Solution 1: - Generated correct bcrypt hash for 'demo123' - Updated PostgreSQL users table (60 chars) - Updated SQLite sftpgo_users table (60 chars) - CLI test: demo/demo123 login now returns token ✅ Problem 2: Tree modal eye icon position too high - Password container had no height specified - Eye icon used top:50% transform, but container height undefined - Icon appeared misaligned Solution 2: - Added height:40px to password container - Eye icon now positioned correctly at vertical center Files: - src/page.html (eye icon container fix) - data/auth.sqlite (demo password hash) --- data/auth.sqlite | Bin 73728 -> 73728 bytes src/page.html | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/data/auth.sqlite b/data/auth.sqlite index d7efdeb9568914fea52b3840dde3e69e3ad5d493..07644c276e59132cf95f0499e3e46c8880e031aa 100644 GIT binary patch delta 171 zcmZoTz|wGlWr8$g`$QRM#`cW~(`6YwCjXG#z&cU7QNexkTDf^3mWtct0Qp5s6QwtQ zk$=rE>c+t=%9xUxoA1HJEXi1&SX7jn=f3%i{#Sl(Hx_12Mh_5yO~C&YKcmFt{qe?N kqvHPqd7HoF8}F=G$;FOEQ)x78RxDS#SQL|COKHiiMez(FR0d6YxL9&nPl^f4ni+ jsQCXt-sUg)hW$W6wf|?pg8xB++rRKL{^#cvVL$=^Na;4- diff --git a/src/page.html b/src/page.html index c1b63c8..b9768a8 100644 --- a/src/page.html +++ b/src/page.html @@ -473,7 +473,7 @@ function showTreeLoginModal(){ ''+ ''+ ''+ - '
'+ + '
'+ ''+ ''+ ''+