Esempio n. 1
0
        public virtual async Task SendPasswordResetCodeAsync(SendPasswordResetCodeDto input)
        {
            var user = await GetUserByEmail(input.Email);

            var resetToken = await UserManager.GeneratePasswordResetTokenAsync(user);

            await AccountEmailer.SendPasswordResetLinkAsync(user, resetToken, input.AppName, input.ReturnUrl, input.ReturnUrlHash);
        }
Esempio n. 2
0
 public virtual Task SendPasswordResetCodeAsync(SendPasswordResetCodeDto input)
 {
     return(AccountAppService.SendPasswordResetCodeAsync(input));
 }