feat: change email, export my data, delete account (with data anonymization)

This commit is contained in:
Florian Sylvain committed 2026-10-30 20:19:07 +01:00
1 parent bb191c389a
commit 10a66cd979
123 files changed
+10789 -76

No files matched your search

@@ -44,6 +44,14 @@ var failureReasons = []failureReason{
{user.ErrVerificationCodeExpired, "The verification code has expired."},
{user.ErrInvalidDisplayName, "That display name is too long."},
{user.ErrUsernameTaken, "That username is already taken."},
{user.ErrWrongPassword, audit.ReasonWrongPassword},
{user.ErrLastOwner, "Last Owner."},
{user.ErrLastAdmin, "Last administrator."},
{user.ErrAccountNotDeletable, "The account can't be deleted right now."},
{user.ErrSameEmail, "The new address is already the account's email address."},
{user.ErrNoPendingEmailChange, "No email change is pending."},
{user.ErrInvalidEmailChangeCode, "The email change link is not valid."},
{user.ErrEmailUnavailable, "The new address can't be used for this account."},
{user.ErrPasswordTooLong, "The password is longer than 72 bytes."},
{invite.ErrEmailHasAccount, "That email already has an account."},
{invite.ErrPendingInvite, "An invitation is already pending for that email."},