Skip to content

Deactivate : should we delete the associate email? #113

@odelcroi

Description

@odelcroi

// Delete all the email addresses for the user
let n = repo
.user_email()
.remove_bulk(UserEmailFilter::new().for_user(&user))
.await
.map_err(JobError::retry)?;
info!(affected = n, "Removed all email addresses for user");

Should we keep this behaviour?

It complicates the matching account logic because it is based on email.

Then matching existing accounts when deactivated fails, we should rely on username

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions