public async Task AccountCreationComplete(Account targetUser) { var targetUserNotification = await CreateNotification(targetUser); var uri = await _auth.GeneratePasswordResetTokenLinkAsync(targetUser, _settings.ResetPassword); var notification = new RecoverPasswordNotification(targetUserNotification, uri.ToString()); await _repository.SendAccountCreationCompleteNotification(notification); }
internal static void AccountCreationCompleteNotification(string language, Notification notification) { notification = new RecoverPasswordNotification(notification, "https://sodapdf.com"); Send(language, EmailTemplate.AccountCreationCompleteNotification, notification); }
public async Task SendRecoverPasswordNotification(RecoverPasswordNotification model) { await EmailInsert(model.AccountId, EmailTemplate.RecoverPasswordNotification, model.Email, model); }