From 23a7be5473642a512f8e9180729dbb6f79abb7a3 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 6 May 2021 12:10:51 -0400 Subject: [PATCH] Invalidate current logins on account deletion. Fixes #1602 --- crates/db_queries/src/source/person.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/db_queries/src/source/person.rs b/crates/db_queries/src/source/person.rs index 4624ae191..a7266aa27 100644 --- a/crates/db_queries/src/source/person.rs +++ b/crates/db_queries/src/source/person.rs @@ -237,7 +237,10 @@ impl Person_ for Person { // Set the local user info to none diesel::update(local_user::table.filter(local_user::person_id.eq(person_id))) - .set((local_user::email.eq::>(None),)) + .set(( + local_user::email.eq::>(None), + local_user::validator_time.eq(naive_now()), + )) .execute(conn)?; diesel::update(person.find(person_id))