I have a problem with my [UserSaved] notification subscriber is exceuted two times every time a user signs up on a page in the frontend. I can't seem to figure out why this notification subscriber is exceuted two times - I would only expect it to run 1 time, when a users is created.
The notification Subscriber has the same user information in both runs of the subscriber. I have tried to use fiddler to see if the frontend page post the user create form two times, but it dosent.
I've tried to restrict my OnNotify method only to run if im "in the frontend page", I tried to restrict the URL to only run on a specific url, but the subscribers OnNotify method is still exceuted two times.
Is there a way to make sure the OnNotify method in my code only is exceuted a single time?
I have spoken with some of my colleagues aswell, but with no luck of finding the right solution, hope someone out that can enlighten me in this case, in advance thanks.
[Dynamicweb.Extensibility.Subscribe(Dynamicweb.Modules.UserManagement.Notifications.UserSaved)] public class AfterSubmitUserToIsabellaClubObserver : Dynamicweb.Extensibility.NotificationSubscriber { public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args) { if (args == null || !(args is Dynamicweb.Modules.UserManagement.UserNotificationArgs)) return;
......................................