Emit cancellable Pre-Event before setting the E-Mail (Possible other attributes) #21233
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
enhancement
needs info
stale
Ticket or PR with no recent activity
How to use GitHub
Is your feature request related to a problem? Please describe.
We use Nextcloud with an LDAP-User Backend. We enforce unique E-Mails through the use of a LDAP-Overlay, so sometimes writing an E-Mail can fail. (We use the LDAP write support plugin). I already filled out a Bug Report at the Write Support, but I've got told, that they only receive an event after the Mail has already been changed.
Describe the solution you'd like
Make the E-Mail Setting somehow cancelable, by either emitting an pre-event or by reverting changes when the after-event is cancelled.
Describe alternatives you've considered
Adding an option to enforce unique E-Mails would also solve this specific issue, but making the event cancelable would probably scale better.
Additional context
LDAP Write Support Issue I filed: nextcloud/ldap_write_support#164
The text was updated successfully, but these errors were encountered: