Hi
I've started using the Notification Subscribers that Dynamicweb offers and I got it working easily with a Standard.User.OnExtranetLogin subscriber.
Now I want to create a UserManagement.Notifications.UserSaved subscriber, but I can't seem to make it work.
Regarding our Dynamicweb solution, I am not the one who install new module and the like so I'm not entirely sure that I know the difference between the old and the new user modules. I think that we still use the old user module in our Dynamicweb backend. We have a Users (brugere) module and then there's a Users (extended) module which isn't installed. I know that the data for our users is in the AccessUser table. Does that tell you anything? :-)
My question is this: Does a UserManagement.Notifications.UserSaved subscriber even work with the old user module? And if not, can I use another subscriber to obtain the same goal?
My code is here (I took it largely from the User Management Extensibility PDF that's located under Documentation). I cut away all non-essential code:
[Subscribe(Dynamicweb.Modules.UserManagement.Notifications.UserSaved)]
public class UserAdminSubscriber : NotificationSubscriber
{
private static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public override void OnNotify(string notification, NotificationArgs baseArgs)
{
log.Debug("UserAdminSubscriber was executed.");
}
}
Developer forum
UserManagement.Notifications.UserSaved
Replies
You must be logged in to post in the forum