Example #1
0
    public SignOutSuccessResult NotifyLogoutSuccess(IPrincipal currentUser, string?userId)
    {
        UserLogoutSuccessNotification notification = Notify(
            currentUser,
            (currentUserId, ip) => new UserLogoutSuccessNotification(ip, userId, currentUserId));

        return(new SignOutSuccessResult {
            SignOutRedirectUrl = notification.SignOutRedirectUrl
        });
    }
Example #2
0
 public void Handle(UserLogoutSuccessNotification notification)
 => WriteAudit(notification.PerformingUserId, notification.AffectedUserId, notification.IpAddress, "umbraco/user/sign-in/logout", "logout success");