Beispiel #1
0
 public virtual async Task SendPasswordResetCodeAsync(SendPasswordResetCodeDto input)
 {
     await RequestAsync(nameof(SendPasswordResetCodeAsync), new ClientProxyRequestTypeValue
     {
         { typeof(SendPasswordResetCodeDto), input }
     });
 }
Beispiel #2
0
    public virtual async Task SendPasswordResetCodeAsync(SendPasswordResetCodeDto input)
    {
        var user = await GetUserByEmailAsync(input.Email);

        var resetToken = await UserManager.GeneratePasswordResetTokenAsync(user);

        await AccountEmailer.SendPasswordResetLinkAsync(user, resetToken, input.AppName, input.ReturnUrl, input.ReturnUrlHash);
    }
Beispiel #3
0
        public async Task SendPasswordResetCode(SendPasswordResetCodeDto input)
        {
            var user = await UserManager.FindByNameOrEmailAsync(input.UserNameOrEmail);

            if (user == null)
            {
                throw new UserFriendlyException(L("NoResultsFoundForUser"));
            }
            user.SetNewPasswordResetCode();
            await _userEmailer.SendPasswordResetLinkAsync(user, AppUrlService.CreatePasswordResetUrlFormat(AbpSession.TenantId));
        }
Beispiel #4
0
 public virtual Task SendPasswordResetCodeAsync(SendPasswordResetCodeDto input)
 {
     return(AccountAppService.SendPasswordResetCodeAsync(input));
 }
Beispiel #5
0
 /// <inheritdoc />
 public Task SendPasswordResetCode(SendPasswordResetCodeDto parameters)
 {
     return(_accountAppService.SendPasswordResetCodeAsync(parameters));
 }