public void Process(LoggedInPipelineArgs args) { var contactId = args.ContactId; _accountTrackerService.TrackLoginAndIdentifyContact(args.Source, args.UserName); args.ContactId = Tracker.Current?.Contact?.ContactId; args.PreviousContactId = contactId; }
public override void Process(SignedInArgs args) { //Do not track the user signin if this is a response to a membership provider login var provider = this.GetProvider(args.Context.Identity); if (provider.Name == Owin.Authentication.Constants.LocalIdentityProvider) { return; } if (Tracker.Current == null) { Tracker.Initialize(); } _accountTrackerService.TrackLoginAndIdentifyContact(provider.Name, args.User.Id); _updateContactFacetsService.UpdateContactFacets(args.User.InnerUser.Profile); }