From 43ccd715047e27db16ee87e93fd74fc2713a814d Mon Sep 17 00:00:00 2001 From: qaz741wsd856 Date: Sun, 30 Nov 2025 08:46:40 +0000 Subject: [PATCH] fix: add master password hint to user registration process --- src/handlers/accounts.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/handlers/accounts.rs b/src/handlers/accounts.rs index 25c07b4..c6e869a 100644 --- a/src/handlers/accounts.rs +++ b/src/handlers/accounts.rs @@ -89,12 +89,13 @@ pub async fn register( query!( &db, - "INSERT INTO users (id, name, email, master_password_hash, password_salt, key, private_key, public_key, kdf_iterations, security_stamp, created_at, updated_at) - VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12)", + "INSERT INTO users (id, name, email, master_password_hash, master_password_hint, password_salt, key, private_key, public_key, kdf_iterations, security_stamp, created_at, updated_at) + VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12, ?13)", user.id, user.name, user.email, user.master_password_hash, + user.master_password_hint, user.password_salt, user.key, user.private_key,