feat(backend): add add email address endpoint
This commit is contained in:
parent
7f971e8549
commit
5b17c716cb
6 changed files with 114 additions and 3 deletions
18
Foxnouns.Backend/Mailables/AddEmailMailable.cs
Normal file
18
Foxnouns.Backend/Mailables/AddEmailMailable.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using Coravel.Mailer.Mail;
|
||||
|
||||
namespace Foxnouns.Backend.Mailables;
|
||||
|
||||
public class AddEmailMailable(Config config, AddEmailMailableView view)
|
||||
: Mailable<AddEmailMailableView>
|
||||
{
|
||||
public override void Build()
|
||||
{
|
||||
To(view.To).From(config.EmailAuth.From!).View("~/Views/Mail/AddEmail.cshtml", view);
|
||||
}
|
||||
}
|
||||
|
||||
public class AddEmailMailableView : BaseView
|
||||
{
|
||||
public required string Code { get; init; }
|
||||
public required string Username { get; init; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue