mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Invalidate current logins on account deletion. Fixes #1602
This commit is contained in:
parent
f67b0e9ff8
commit
23a7be5473
@ -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::<Option<String>>(None),))
|
||||
.set((
|
||||
local_user::email.eq::<Option<String>>(None),
|
||||
local_user::validator_time.eq(naive_now()),
|
||||
))
|
||||
.execute(conn)?;
|
||||
|
||||
diesel::update(person.find(person_id))
|
||||
|
Loading…
Reference in New Issue
Block a user