Example #1
0
        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);
        }
Example #2
0
 internal static void AccountCreationCompleteNotification(string language, Notification notification)
 {
     notification = new RecoverPasswordNotification(notification, "https://sodapdf.com");
     Send(language, EmailTemplate.AccountCreationCompleteNotification, notification);
 }
Example #3
0
 public async Task SendRecoverPasswordNotification(RecoverPasswordNotification model)
 {
     await EmailInsert(model.AccountId, EmailTemplate.RecoverPasswordNotification, model.Email, model);
 }