Got a login

This commit is contained in:
Paul Schneider 2023-04-05 22:29:40 +01:00
commit 4b52b6e96e
61 changed files with 7793 additions and 609 deletions

View file

@ -15,6 +15,7 @@ using System.Reflection;
using Yavsc.Abstract.Templates;
using Microsoft.AspNetCore.Identity;
using RazorEngine.Configuration;
using Yavsc.Interface;
namespace Yavsc.Lib
{
@ -30,16 +31,14 @@ namespace Yavsc.Lib
readonly IStringLocalizer<EMailer> stringLocalizer;
readonly ApplicationDbContext dbContext;
readonly IEmailSender mailSender;
readonly ILogger logger;
public EMailer(ApplicationDbContext context, IEmailSender sender,
public EMailer(ApplicationDbContext context,
IStringLocalizer<EMailer> localizer,
ILoggerFactory loggerFactory)
{
stringLocalizer = localizer;
mailSender = sender;
logger = loggerFactory.CreateLogger<EMailer>();