mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 01:54:43 +00:00
Replace shared email commands with MediatR notifications (#280)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using MediatR;
|
||||
|
||||
namespace Features.Auth.Notifications;
|
||||
|
||||
/// <summary>
|
||||
/// Published after a user requests a fresh confirmation link. Handled by Features.Emails to send the
|
||||
/// resend confirmation email.
|
||||
/// </summary>
|
||||
public record ConfirmationEmailResendRequestedNotification(
|
||||
Guid UserId,
|
||||
string FirstName,
|
||||
string Email,
|
||||
string ConfirmationToken
|
||||
) : INotification;
|
||||
@@ -0,0 +1,14 @@
|
||||
using MediatR;
|
||||
|
||||
namespace Features.Auth.Notifications;
|
||||
|
||||
/// <summary>
|
||||
/// Published after a new user registers. Handled by Features.Emails to send the registration
|
||||
/// confirmation email.
|
||||
/// </summary>
|
||||
public record UserRegisteredNotification(
|
||||
Guid UserId,
|
||||
string FirstName,
|
||||
string Email,
|
||||
string ConfirmationToken
|
||||
) : INotification;
|
||||
Reference in New Issue
Block a user