mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Fixes #6369, a regression introduced with#6188: Sending invite emails required a flag to be set, which defaulted to false. This fixes the code to explicitely set the flag and also defaults it to true (sending an invite email unless declared otherwise).
23 lines
597 B
C#
23 lines
597 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.Data;
|
|
|
|
namespace BTCPayServer.Events;
|
|
|
|
public class UserRegisteredEvent
|
|
{
|
|
public ApplicationUser User { get; set; }
|
|
public bool Admin { get; set; }
|
|
public UserRegisteredEventKind Kind { get; set; } = UserRegisteredEventKind.Registration;
|
|
public Uri RequestUri { get; set; }
|
|
public ApplicationUser InvitedByUser { get; set; }
|
|
public bool SendInvitationEmail { get; set; } = true;
|
|
public TaskCompletionSource<Uri> CallbackUrlGenerated;
|
|
}
|
|
|
|
public enum UserRegisteredEventKind
|
|
{
|
|
Registration,
|
|
Invite
|
|
}
|