Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
How do I hook into the Save User event in the backoffice?
I want to call an external webapi if the user has been disabled.
Thanks!
I suggest you use the ApplicationEventHandler.
using Umbraco.Core.Models.Membership; using Umbraco.Core.Services; namespace MyApplication { public class UmbracoEventHandler : ApplicationEventHandler { protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) { UserService.SavedUser += UserServiceSaved; base.ApplicationStarting(umbracoApplication, applicationContext); } private void UserServiceSaved(IUserService sender, SaveEventArgs<IUser> e) { throw new NotImplementedException(); } } }
Thanks David!
That looks perfect!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Hook into the Save User event?
Hi,
How do I hook into the Save User event in the backoffice?
I want to call an external webapi if the user has been disabled.
Thanks!
I suggest you use the ApplicationEventHandler.
Thanks David!
That looks perfect!
is working on a reply...