start (actual) email auth, add CancellationToken to most async methods
This commit is contained in:
parent
acc54a55bc
commit
344a0071e5
22 changed files with 325 additions and 152 deletions
19
Foxnouns.Backend/Mailables/AccountCreationMailable.cs
Normal file
19
Foxnouns.Backend/Mailables/AccountCreationMailable.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using Coravel.Mailer.Mail;
|
||||
|
||||
namespace Foxnouns.Backend.Mailables;
|
||||
|
||||
public class AccountCreationMailable(Config config, AccountCreationMailableView view) : Mailable<AccountCreationMailableView>
|
||||
{
|
||||
public override void Build()
|
||||
{
|
||||
To(view.To)
|
||||
.From(config.EmailAuth.From!)
|
||||
.View("~/Views/Mail/AccountCreation.cshtml", view);
|
||||
}
|
||||
}
|
||||
|
||||
public class AccountCreationMailableView
|
||||
{
|
||||
public required string To { get; init; }
|
||||
public required string Code { get; init; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue