fix: add master password hint to user registration process

This commit is contained in:
qaz741wsd856 2025-11-30 08:46:40 +00:00
parent d17d524842
commit 43ccd71504

View file

@ -89,12 +89,13 @@ pub async fn register(
query!( query!(
&db, &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) "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)", VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12, ?13)",
user.id, user.id,
user.name, user.name,
user.email, user.email,
user.master_password_hash, user.master_password_hash,
user.master_password_hint,
user.password_salt, user.password_salt,
user.key, user.key,
user.private_key, user.private_key,