/// <summary> /// Initiate the reset password by sending a verification via email/sms /// </summary> /// <param name="userName"></param> /// <returns></returns> public async Task InitiateResetPasswordAsync(string userName) { AdminResetUserPasswordRequest adminResetUserPasswordRequest = new AdminResetUserPasswordRequest() { Username = userName, UserPoolId = _appConfigInfo.AWSPoolId }; await _provider.AdminResetUserPasswordAsync(adminResetUserPasswordRequest); }
public async Task AdminResetUserPassword(Guid key) { var request = new AdminResetUserPasswordRequest { Username = $"{key}", UserPoolId = _cognito.UserPool.Id }; await _provider.AdminResetUserPasswordAsync(request); }