TNG-AZ / tng-web-board

Board website for TNG AZ
MIT License
0 stars 1 forks source link

Welcome Email Feature #2

Open drakewashere opened 6 months ago

drakewashere commented 6 months ago

The jist of it is that we need to add an event to this file https://github.com/TNG-AZ/tng-web-board/blob/main/TNG.Web.Board/Areas/Identity/Pages/Account/ConfirmEmail.cshtml.cs to send a welcome email if result.Succeeded KiP is going to provide the message, but IMO it should load dynamically from a file and get the email subject from an IConfig

Essentially the tech initiative is just adding a conditional block "if (result.Succeeded) {" loading in the email file and subject line, then sending the email with the body the text from the file and the subject the text from the IConfig. I already did the DI for the email sender because it's less intuitive, but you will still need to do the DI for the IConfig

drakewashere commented 6 months ago

3 PR opened for adding base functionality, still need copy and subject line