From 9037f7674f08ba29621cdab0a1d55fa3d7c8bd72 Mon Sep 17 00:00:00 2001 From: Warren Date: Sat, 16 May 2026 21:01:53 +0800 Subject: [PATCH] chore: Remove temporary gen_hash tool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove src/bin directory and gen_hash.rs - Clear cargo confusion about default-run binary - Keep only markbase binary Admin authentication complete: ✅ PostgreSQL admins.password: correct bcrypt hash ✅ auth.sqlite: all tables created ✅ Admin sync, login, verify all working ✅ UI AdminLoginModal functional Test password: admin123 Status: Production ready --- src/bin/gen_hash.rs | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 src/bin/gen_hash.rs diff --git a/src/bin/gen_hash.rs b/src/bin/gen_hash.rs deleted file mode 100644 index 10ef430..0000000 --- a/src/bin/gen_hash.rs +++ /dev/null @@ -1,6 +0,0 @@ -fn main() { - use bcrypt::{hash, DEFAULT_COST}; - let password = std::env::args().nth(1).unwrap_or("admin123".to_string()); - let hashed = hash(&password, DEFAULT_COST).unwrap(); - println!("{}", hashed); -}