From: Dessalines Date: Fri, 28 May 2021 15:50:52 +0000 (-0400) Subject: Invalidate current logins on account deletion. Fixes #1602 (#1603) X-Git-Url: http://these/git/%7B%24%7B%60data:application/%22%7Burl%7D/%7Bthis.captchaPngSrc%28%29%7D?a=commitdiff_plain;h=ab2b8df1cb5078b87d1713ab5af41695cfc3eab4;p=lemmy.git Invalidate current logins on account deletion. Fixes #1602 (#1603) --- 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))