public SignOutSuccessResult NotifyLogoutSuccess(IPrincipal currentUser, string?userId) { UserLogoutSuccessNotification notification = Notify( currentUser, (currentUserId, ip) => new UserLogoutSuccessNotification(ip, userId, currentUserId)); return(new SignOutSuccessResult { SignOutRedirectUrl = notification.SignOutRedirectUrl }); }
public void Handle(UserLogoutSuccessNotification notification) => WriteAudit(notification.PerformingUserId, notification.AffectedUserId, notification.IpAddress, "umbraco/user/sign-in/logout", "logout success");