コード例 #1
0
        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);
        }
コード例 #2
0
 public async Task SendLegacyCreatePasswordReminder(CreatePasswordNotification model)
 {
     await EmailInsert(model.AccountId, EmailTemplate.LegacyCreatePasswordReminder, model.Email, model);
 }
コード例 #3
0
 public async Task MicrotransactionCreatePassword(CreatePasswordNotification model)
 {
     await EmailInsert(model.AccountId, EmailTemplate.MicrotransactionCreatePasswordNotification, model.Email, model);
 }
コード例 #4
0
 public async Task SendLegacyActivationCreatePasswordNotification(CreatePasswordNotification model)
 {
     await EmailInsert(model.AccountId, EmailTemplate.LegacyActivationCreatePasswordNotification, model.Email, model);
 }