From ab2b8df1cb5078b87d1713ab5af41695cfc3eab4 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 28 May 2021 11:50:52 -0400 Subject: [PATCH] Invalidate current logins on account deletion. Fixes #1602 (#1603) --- 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 4624ae19..a7266aa2 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)) -- 2.44.1