private async Task <CreatePasswordNotification> CreatePasswordNotification(Account targetAccount) { var targetUserNotification = await CreateNotification(targetAccount); var notification = new CreatePasswordNotification(targetUserNotification); var uri = await _auth.GeneratePasswordResetTokenLinkAsync(targetAccount, _settings.CreatePassword); notification.CreatePasswordLink = uri.ToString(); return(notification); }
public async Task SendLegacyCreatePasswordReminder(CreatePasswordNotification model) { await EmailInsert(model.AccountId, EmailTemplate.LegacyCreatePasswordReminder, model.Email, model); }
public async Task MicrotransactionCreatePassword(CreatePasswordNotification model) { await EmailInsert(model.AccountId, EmailTemplate.MicrotransactionCreatePasswordNotification, model.Email, model); }
public async Task SendLegacyActivationCreatePasswordNotification(CreatePasswordNotification model) { await EmailInsert(model.AccountId, EmailTemplate.LegacyActivationCreatePasswordNotification, model.Email, model); }