From 43a1abc2ed6b2c984ca8fe9b2dc7b775f89f77c7 Mon Sep 17 00:00:00 2001 From: M1 Date: Tue, 17 Mar 2026 06:25:19 +0400 Subject: [PATCH] fix: format keys as XXXX-XXXX-...-XXXX (8 groups), normalize before hashing Keys are now human-readable grouped hex instead of raw 64-char blobs. resolveKey() strips dashes before sha256/bcrypt so both formats work. All key creation paths (register, reset-key, sub-keys) hash the normalized form. Login placeholder and maxlength updated to match. --- apps/web/src/dashboard/index.html | 6 +++--- apps/web/src/routes/auth.ts | 31 +++++++++++++++++++++---------- 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/apps/web/src/dashboard/index.html b/apps/web/src/dashboard/index.html index 02010b1..409181c 100644 --- a/apps/web/src/dashboard/index.html +++ b/apps/web/src/dashboard/index.html @@ -21,9 +21,9 @@
- +